Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
247 views
in Technique[技术] by (71.8m points)

Running an Ansible Playbook on a particular group of servers

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?

question from:https://stackoverflow.com/questions/22129422/running-an-ansible-playbook-on-a-particular-group-of-servers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Same way as you would do for hosts : -l PerfSetup


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...