ansible variables shared with multiple groups if inventory is only localhost ansible variables shared with multiple groups if inventory is only localhost kubernetes kubernetes

ansible variables shared with multiple groups if inventory is only localhost


Refactor your inventory to use distinct names:

# Inventory File#[east.k.example.com]east ansible_connection=local[east2.k.example.com]east2 ansible_connection=local

This way Ansible will treat them as different hosts, thus not merging variables from different groups.