【发布时间】:2020-01-07 03:47:17
【问题描述】:
我已阅读How do you get group name of the executing role in ansible
我也读过https://docs.ansible.com/ansible/latest/reference_appendices/special_variables.html
但我看不懂。
如果同一主机IP在不同的host_groups,我认为:“ansible在执行主机时是分开执行的,应该只属于一个group_name,而不是group_names”。
如何获取当前正在执行的主机 gorup_name,而不是 group_names?
【问题讨论】:
标签: ansible