This might solve your
issue:
https://medium.com/@andrewhowdencom/the-curious-case-of-sudden-ansible-build-failures-eef1cf9ad1d0
If it doesn't, can you also post the file permissions and content of
ansible.cfg and ios_facts.yml?
Regards,
Ajay
On Wednesday, August 8, 2018 at 8:32:19 AM UTC-7, Michael Sawires wrote:
>
> test@TESTVM:/etc/ansible$ ansible-playbook ios_facts.yml
> [WARNING] Ansible is in a world writable directory (/etc/ansible),
> ignoring it as an ansible.cfg source.
>
> PLAY [Collect IOS Device Facts]
> ************************************************************************************************************************************************************
>
> TASK [Gathering Facts]
> *********************************************************************************************************************************************************************
> fatal: [10.208.0.17]: FAILED! => {"msg": " [WARNING] Ansible is in a world
> writable directory (/etc/ansible), ignoring it as an ansible.cfg
> source.\n{\"socket_path\": \"/home/test/.ansible/pc/12ac842f48\",
> \"exception\": \"Traceback (most recent call last):\\n File
> \\\"/usr/bin/ansible-connection\\\", line 87, in start\\n
> self.connection._connect()\\n File
> \\\"/usr/lib/python2.7/dist-packages/ansible/plugins/connection/network_cli.py\\\",
>
> line 302, in _connect\\n self._ssh_shell =
> ssh.ssh.invoke_shell()\\nNameError: global name 'ssh' is not defined\\n\",
> \"messages\": [\"local domain socket does not exist, starting it\",
> \"control socket path is /home/test/.ansible/pc/12ac842f48\", \"\"],
> \"error\": \"global name 'ssh' is not defined\"}"}
> to retry, use: --limit @/etc/ansible/ios_facts.retry
>
> PLAY RECAP
> *********************************************************************************************************************************************************************************
> 10.208.0.17 : ok=0 changed=0 unreachable=0
> failed=1
>
> test@TESTVM:/etc/ansible$
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/460f28a4-dcca-448e-9036-a550ccae46c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.