I was just hit by some surprising behavior due to the Ansible variable precedence rules where the include_vars block in tasks/main.yml overrode my configuration that I had set in "14. play vars_files". Since include_vars is at position 18 in that list there are very few options for overriding the configuration in vars/RedHat.yml. Could the role be reworked to respect configuration set in at least step 12 and onwards?
For reference a similar issue has been brought up in the past #49.
This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!
I was just hit by some surprising behavior due to the Ansible variable precedence rules where the
include_vars
block intasks/main.yml
overrode my configuration that I had set in "14. play vars_files". Sinceinclude_vars
is at position 18 in that list there are very few options for overriding the configuration in vars/RedHat.yml. Could the role be reworked to respect configuration set in at least step 12 and onwards?For reference a similar issue has been brought up in the past #49.