Ansible 2.4 hostfile警告

时间:2017-11-06 23:41:18

标签: ansible

在Ansible 2.4中,我收到了这个弃用警告:

[DEPRECATION WARNING]: [defaults]hostfile option, The key is misleading as it can also be a list of hosts, a directory or a list of
paths . This feature will be removed in version 2.8. Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.

对于我的生活,我无法弄清楚这意味着什么。有人知道吗?

1 个答案:

答案 0 :(得分:13)

在我的ansible.cfg文件中,我有一行像

hostfile = ./inventory

需要更改为

inventory = ./inventory