There are many ways, simplest might be using host aliases, but this might be inefficient:
[GroupA] host1A ansible_host=hosta [GroupB] host1A ansible_host=hosta Setting up the variables at play/role level might make more sense, Ansible's inventory is meant to give a 'full picture' of the host and any duplicate variables will be merged, groups are just a tag and convenience to assign variables and select hosts, not a real entity in a playbook, at that point there is only Hosts and Tasks, it doesn't matter that you use GroupA to target a host, the host is still a member of all the groups it is a member of. -- ---------- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7cTpe6c9eA69wPmT%2BhQ3S5X3jQT9Oudv%2BiqYxNWFc_2%3DQ%40mail.gmail.com.
