-
-
Notifications
You must be signed in to change notification settings - Fork 355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible inventory groups not present in variables #443
Comments
I would say either it's a regression or we are missing some documentation to migrate from a previous release to 3.0.x |
Well, the behavior has changed since we no longer use the python ansible API (see #431) and cli return different results. What Here is an example with testinfra 2.1.0 (python API)
And now with testinfra 3.0.2 (CLI)
I think only |
This key was returned by ansible python API in testinfra 2.X and users rely on it. Closes #443
This key was returned by ansible python API in testinfra 2.X and users rely on it. Closes #443
This key was returned by ansible python API in testinfra 2.X and users rely on it. Closes #443
Not sure if it's a bug or if it's related to the ansible_runner refact done in testinfra 3.0.2
Before 3.0.x release, we were collecting the ansible groups information from the inventory via the ansible variables :
In testinfra 2.1.0 the
ansible_vars["groups"]
is :{u'mgrs': [u'cephaio-1', u'cephaio-2', u'cephaio-3'], 'all': [u'cephaio-1', u'cephaio-2', u'cephaio-3'], u'clients': [u'cephaio-1', u'cephaio-2', u'cephaio-3'], u'osds': [u'cephaio-1', u'cephaio-2', u'cephaio-3'], 'ungrouped': [], u'mons': [u'cephaio-1', u'cephaio-2', u'cephaio-3'], u'mdss': [u'cephaio-1', u'cephaio-2', u'cephaio-3'], u'rgws': [u'cephaio-1', u'cephaio-2', u'cephaio-3']}
But with testinfra 3.0.x the groups key isn't defined anymore.
The ansible hosts file looks like :
Is there another way to retrieve this information or is it a bug that breaks backward compatibility ?
The text was updated successfully, but these errors were encountered: