配置ansible.cfg

[defaults]
inventory      = myhost                                    #  指定主机清单文件
host_key_checking = False

配置主机清单文件

[node]
node[1:3]


[master]
nn01
nn02

[data]
nfsgw

[client]
client


[app:children]
node
master
data
client

 

查看主机清单

ansible app --list-hosts

 

相关文章:

  • 2022-03-04
  • 2022-01-15
  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-29
  • 2021-05-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-06-11
  • 2022-01-05
  • 2021-12-03
  • 2021-09-23
  • 2021-10-18
相关资源
相似解决方案