2017-11-06 1 views
1

In ansible 2.4, ich bin diese deprecation Warnung erhalten:ansible 2.4 Hostfile Warnung

[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. 

Für das Leben von mir, ich kann nicht herausfinden, was das bedeutet. Jeder weiß es?

Antwort

3

In meiner ansible.cfg Datei hatte ich eine Zeile wie

hostfile = ./inventory 

, die geändert werden muss, um

inventory = ./inventory 
+0

Wie Sie herausgefunden 'hostfile' für' inventory' ist veraltet : http://docs.ansible.com/ansible/latest/porting_guide_2.4.html#specifying-inventory-sources – zigarn