Hi,
In my inventory file I have “[linux]” and “[development]” groups. I want to patch the intersection of those groups. I know for one I can “ansible-playbook —limit linux patching.yml”, but how do I do the intersection?
Mike
Hi,
In my inventory file I have “[linux]” and “[development]” groups. I want to patch the intersection of those groups. I know for one I can “ansible-playbook —limit linux patching.yml”, but how do I do the intersection?
Mike
Something like this? https://docs.ansible.com/ansible/2.9/user_guide/intro_patterns.html#common-patterns
Or Mike could add this to the inventory file
[patching:children]
linux
development
And use this group in patching.yml.
Regards
Racke
Hi Mike,
The syntax is:
linux:&development
See https://docs.ansible.com/ansible/latest/user_guide/intro_patterns.html#common-patterns for a handy cheatsheet of common patterns.
Alicia Cozine
She/Her
Lead Technical Writer, Ansible
Red Hat
Something like this? https://docs.ansible.com/ansible/2.9/user_guide/intro_patterns.html#common-patterns
Hi,
In my inventory file I have “[linux]” and “[development]” groups. I want to patch the intersection of those groups. I
know for one I can “ansible-playbook —limit linux patching.yml”, but how do I do the intersection?Mike
Or Mike could add this to the inventory file
[patching:children]
linux
developmentAnd use this group in patching.yml.
Sorry misread the post, this what would be the union, not the intersectoin.
Regards
Racke
Works great. Thank you!
Mike