-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Add option for tower inventory to give general metadata #52747
Conversation
Requesting review @ryanpetrello @rooftopcellist |
shipit |
shipit |
1 similar comment
shipit |
bot_status |
Componentslib/ansible/plugins/inventory/tower.py Metadatawaiting_on: maintainer |
ad1b5ea
to
582b2f5
Compare
What does that mean? Where can I find the output from this test? |
Looks like commit was after the last s h i p i t which resets the counter to zero shipit |
shipit |
1 similar comment
shipit |
That did it thanks, merged into |
SUMMARY
This adds an option which, if enabled, will return additional information about the remote tower server which the plugin is returning mirroring content from.
ISSUE TYPE
COMPONENT NAME
lib/ansible/plugins/inventory/tower.py
Ansible Tower inventory plugin
ADDITIONAL INFORMATION
We need to know license type to tell apart AWX vs. Ansible Tower, and I also thought that version and ansible_version would be of general utility.
Ping @matburt @wenottingham
Example of using this parameter:
The id and enabled variables are already kind of "metadata", but are host specific.
I did wonder if it might be better to create a new group, and put the variables in there (that way, if you are using multiple inventory sources, they don't get messed up). Either way, it doesn't matter to me. This is my initial pass because it seems like the path of least clutter.