在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.
对于我的生活,我无法弄清楚这意味着什么。有人知道吗?
答案 0 :(得分:13)
在我的ansible.cfg文件中,我有一行像
hostfile = ./inventory
需要更改为
inventory = ./inventory