uvok on Nostr: Today I learned: #ansible roles are helpful for installing the same packages on a ...
Today I learned:
#ansible roles are helpful for installing the same packages on a group of hosts
#ansible inventory file: The variables of the first group a single host is part are apparently taken, i.e. if I have a host abc in group g1 with ansible_user:ansible and also in a later group g2 with ansible_user:root, even if I do ansible-playbook on g2, the host abc wants to use the ansible_user ansible
#ansible roles are helpful for installing the same packages on a group of hosts
#ansible inventory file: The variables of the first group a single host is part are apparently taken, i.e. if I have a host abc in group g1 with ansible_user:ansible and also in a later group g2 with ansible_user:root, even if I do ansible-playbook on g2, the host abc wants to use the ansible_user ansible