本文介绍了在Ansible中访问任务中的主机变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个主机组,该主机组具有如下所示的主机变量

I have a host group which have host variables as shown below

组的所有主机都将定义clean_images.

because there is no host named test, and thus hostvars of test will never exist. All hosts that belong to the test group will have clean_images defined, however

这篇关于在Ansible中访问任务中的主机变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 18:37