本文介绍了在特定的服务器组上运行Ansible Playbook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下/etc/ansible/hosts:

I have the following /etc/ansible/hosts:

[ESNodes]
isk-vsrv643
isk-vsrv644
isk-vsrv645

[PerfSetup]
isk-dsrv613
isk-dsrv614

我知道可以使用-l在特定主机上运行剧本有没有一种方法只能在PerfSetup组上运行剧本?

I know there is an option to run a playbook on particular hosts with -lIs there a way to run a playbook only on the PerfSetup group?

推荐答案

与托管主机相同的方法:-l PerfSetup

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

这篇关于在特定的服务器组上运行Ansible Playbook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-13 18:06