On 26. juli 2017 20:45, Andrew Meyer wrote:
So I figured that out.  But now i'm not able to connect to any of the
network devices.

All of them are showing unreachable when running ansible-playbook with
--check.

Here is my config:

  cat asa-showrun.yml
---
- hosts: "cisco-fw-ip"

<snip>


PLAY [cisco-fw-ip]
**************************************************************************************************************************

TASK [Gathering Facts]
**********************************************************************************************************************
fatal: []: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to
the host via ssh: Permission denied (publickey,password).\r\n",
"unreachable": true}
You can't use ssh directly or gather facts against most network devices as they do not have python install.

To make it work add connection and gather_facts as shown bellow.

- hosts: cisco-fw-ip
  connection: local
  gather_facts: false


--
Kai Stian Olstad

--
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/11a37851-b238-0e61-dd3b-720c6e820df6%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to