-
Notifications
You must be signed in to change notification settings - Fork 177
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
Client: Enable to supply labels as inventory-vars #582
base: master
Are you sure you want to change the base?
Client: Enable to supply labels as inventory-vars #582
Conversation
It was unclear to me how integration tests should be added. For now I've (only) tested it manually:
|
Build failed. ✔️ ara-tox-py3 SUCCESS in 2m 37s |
The docs-test error/warning seems to be unrelated (?): |
Note: We could of course deduplicate the |
Build failed. ✔️ ara-tox-py3 SUCCESS in 2m 32s |
Hi, I added a comment relevant to this PR in the issue: #581 (comment) I'd like that we consider what is the right solution because iterating over every host is expensive. |
I will leave this PR open for now but I would rather not go with the suggested implementation for now. When I have more time I would like to benchmark this approach to demonstrate my point. |
If performance of the for-loop is the possible stopper: The labels system might be a lot more useful if inventory-vars could be used 🤔 |
This came back on my radar recently and may be of interest to you: #596 |
ARA-Labels can currently only be set inside a playbook or as extra-vars.
As Ansible uses the inventory-system to dynamically set variables - it would make sense to allow users to set those labels inside their inventory.
This PR adds exactly that functionality.