有没有办法在Ansible库存文件中为一台服务器提到多个标签

问题描述

在Ansible中,我看到了清单文件的使用情况,如下所示:

[somehostlist]
 hostname1
 hostname2

但是有可能实现以下目标:

[hostlist1],[hostlist2]
 localhost1
 localhost2

[hostlist3],[hostlist4],[hostlist5]
 localhost3

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)