Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ansible 2.4 hostfile warning

Tags:

ansible

In Ansible 2.4, I'm getting this deprecation warning:

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

For the life of me, I cannot figure out what this means. Anybody know?

like image 842
Ken DeLong Avatar asked Nov 06 '17 23:11

Ken DeLong


1 Answers

In my ansible.cfg file, I had a line like

hostfile = ./inventory

That needs to be changed to

inventory = ./inventory
like image 165
Ken DeLong Avatar answered Oct 16 '22 02:10

Ken DeLong