hi Tony,
i have no files at all:
/group_vars/all.yml
/inventories/group_vars/all.yml
and i try to put "hosts: group_B", but it not resole this issue. Playbook apply changes to the servers from right group but, variables it take from neighborhood group_vars/file.
I have included ANSIBLE_DEBUG , and what i have found:
2018-05-03 15:23:23,663 p=129458 u=user | 129458 1525353803.66336: Loading data from /ansible/inventories/prod/group_vars/group_B.yml
The `hosts:` keyword is only used to select which hosts get targeted,
it has no influence on group membership, any host is ALWAYS a member
of ALL the groups as defined in inventory, so the variables for a host
always reflect ALL GROUPS.
Interesting. Could you show us what yours "hosts:" line on playbook.yml?
The `hosts:` keyword is only used to select which hosts get targeted,
it has no influence on group membership, any host is ALWAYS a member
of ALL the groups as defined in inventory, so the variables for a host
always reflect ALL GROUPS.
--
----------
Brian Coca
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit