You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you have host defined in more groups, and you will run playbook with --limit arg for the one of them, ansible loads vars for all groups where the host is assigned and take varibles from the latest loaded group vars ignoring --limit arg.
STEPS TO REPRODUCE
host file
[agroup]
server
[zgroup]
server
group_vars structure folders/file structure
group_vars
- agroup
- vars
- zgroup
- vars
run
ansible-playbook some_palybook.yml --limit=agroup
ansible will took variables from zgroup instead of limited agroup
EXPECTED RESULTS
playbook will select correct group_vars for agroup
ACTUAL RESULTS
playbook selects group_vars for zgroup
The text was updated successfully, but these errors were encountered:
ISSUE TYPE
Bug Report
COMPONENT NAME
group vars selection
ANSIBLE VERSION
CONFIGURATION
default pip install
OS / ENVIRONMENT
Ubuntu 16.04
SUMMARY
If you have host defined in more groups, and you will run playbook with --limit arg for the one of them, ansible loads vars for all groups where the host is assigned and take varibles from the latest loaded group vars ignoring --limit arg.
STEPS TO REPRODUCE
host file
group_vars structure folders/file structure
run
ansible will took variables from zgroup instead of limited agroup
EXPECTED RESULTS
playbook will select correct group_vars for agroup
ACTUAL RESULTS
playbook selects group_vars for zgroup
The text was updated successfully, but these errors were encountered: