About the default Ansible settings on 18.04

Frans van Berckel fberckel at xs4all.nl
Thu Mar 28 09:07:19 UTC 2019

Dear Devel Team,

There got to be something wrong, or i do not understand the default
Ansible settings, and my tweaks.

Running a default command, with debug true, it always complains about
the hosts file layout for host_list and script.

$ ansible -m debug all -v -a 'var=ansible_connection'
Using /etc/ansible/ansible.cfg as config file
/etc/ansible/hosts did not meet host_list requirements, check plugin
documentation if this is unexpected
/etc/ansible/hosts did not meet script requirements, check plugin
documentation if this is unexpected
deblnxsrv251 | SUCCESS => {
    "ansible_connection": "ssh"
deblnxsrv254 | SUCCESS => {
    "ansible_connection": "ssh"

But tailing the hosts file ... 


And /etc/ansible/host_vars/deblnxsrv251 for example ...

ansible_ssh_port: 22
ansible_ssh_user: frans

Or it's a version setting issue, because that's more often the case.

$ ansible --version
ansible 2.7.8
  config file = /etc/ansible/ansible.cfg
  configured module search path =
  ansible python module location = /usr/lib/python2.7/dist-
  executable location = /usr/bin/ansible
  python version = 2.7.15rc1 (default, Nov 12 2018, 14:31:15) [GCC

Or am I running into a bug ;-)


Frans van Berckel
Media Engineer / Linux Master
LinkedIn: https://www.linkedin.com/in/fransvberckel/

More information about the Ubuntu-devel-discuss mailing list