-
Notifications
You must be signed in to change notification settings - Fork 102
How to override Ansible variables #4058
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
base: master
Are you sure you want to change the base?
How to override Ansible variables #4058
Conversation
. In the {ProjectWebUI}, navigate to *Hosts* > *All Hosts*. | ||
. Select your host. | ||
. On the *Ansible* tab, select the *Variables* tab. | ||
. Click the pencil icon to edit the value of the variable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: This way of overriding a variable is an alternative way to create a matcher (described in this file in the lines before the diff). While we are at it, maybe we could make this clear? Otherwise people might be confused as to how these two features interact (e.g., if I create a matcher AND set the variable via the host's ansible variables tab, which one has precedence)
3f554b2
to
d0b6e93
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased to HEAD of "master".
What changes are you introducing?
Remove docs on how to configure configuring hosts with foreman_ansible by overriding Ansible variables of imported Ansible roles with host parameters because it does not work.
Why are you introducing these changes? (Explanation, links to references, issues, etc.)
I tried to reproduce this on Foreman 3.14 but could not get it to run.
Anything else to add? (Considerations, potential downsides, alternative solutions you have explored, etc.)
draft PR until reproduced by someone else
Contributor checklists
Please cherry-pick my commits into:
Review checklists
Tech review (performed by an Engineer who did not author the PR; can be skipped if tech review is unnecessary):
Style review (by a Technical Writer who did not author the PR):