How to override Ansible variables#4058
Draft
maximiliankolb wants to merge 3 commits intotheforeman:masterfrom
Draft
How to override Ansible variables#4058maximiliankolb wants to merge 3 commits intotheforeman:masterfrom
maximiliankolb wants to merge 3 commits intotheforeman:masterfrom
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.
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)
sbernhard
reviewed
Sep 18, 2025
3f554b2 to
d0b6e93
Compare
maximiliankolb
commented
Sep 18, 2025
Contributor
Author
maximiliankolb
left a comment
There was a problem hiding this comment.
Rebased to HEAD of "master".
sbernhard
approved these changes
Sep 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):