Same way as you would do for hosts : -l PerfSetup
Running an Ansible Playbook on a particular group of servers
-
19-10-2022 - |
Question
I have the following /etc/ansible/hosts:
[ESNodes]
isk-vsrv643
isk-vsrv644
isk-vsrv645
[PerfSetup]
isk-dsrv613
isk-dsrv614
I know there is an option to run a playbook on particular hosts with -l Is there a way to run a playbook only on the PerfSetup group?
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow