Hi,
running the following ad-hoc command using a static inventory file results in one strange event:
`
ansible --version
ansible 2.6.3
config file = /etc/ansible/ansible.cfg
configured module search path = [u’/root/.ansible/plugins/modules’, u’/usr/share/ansible/plugins/modules’]
ansible python module location = /usr/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.7.5 (default, May 31 2018, 09:41:32) [GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
ansible all -m ping
foo.example.com | UNREACHABLE! => {
“changed”: false,
“msg”: “Failed to connect to the host via ssh: ssh: Could not resolve hostname foo.example.com: Name or service not known\r\n”,
“unreachable”: true
}
`
Strange about this event is that the host in question existed in the past but not anymore. It is not in my inventory file.
`
grep foo.example.com /path/to/ansible/hosts
echo $?
1
`
Does anyone have an idea where ansible could find information about this host? And how do I get rid of it.
Regards,
Joerg K.