Ok now i'm getting this -

{"failed": true, "msg": "the field 'args' has an invalid value, which
appears to include a variable that is undefined. The error was: 'password'
is undefined\n\nThe error appears to have been in
'/home/andrew.meyer/playbooks/asa-showrun.yml': line 7, column 5, but
may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe
offending line appears to be:\n\n  tasks:\n  - name:\n    ^ here\n"}






Please remember to reply to all if there are multiple recipients.

Andrew Meyer
[email protected]
[email protected]
314-266-4837

On Wed, Jul 26, 2017 at 1:54 PM, Kai Stian Olstad <
[email protected]> wrote:

> 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 a topic in the
> Google Groups "Ansible Project" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/to
> pic/ansible-project/mIo1cOaimrU/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ms
> gid/ansible-project/11a37851-b238-0e61-dd3b-720c6e820df6%40olstad.com.
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAEAR6cOh9hVaFHyHTPZPrJV%3DVzS_Nsz1MS7zyAaLN-MDt%3D6new%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to