You should at least post my Answer about the error so that others who might
encounter it can quickly and easily discover the cause rather than continue
digging into possible causes while beating their head against a wall
because it doesn't work.

On Fri, Jul 22, 2016 at 2:01 PM, Peter Sprygada <[email protected]>
wrote:

> There are now ASA specific modules available in extras (
> https://github.com/ansible/ansible-modules-extras/tree/devel/network/asa)
>  I would recommend using those for management of ASA devices.
>
> On Fri, Jul 22, 2016 at 12:25 PM, Tony Reveal <[email protected]> wrote:
>
>> Did you ever find a fix for this?  I'm seeing the same error when
>> connecting to an ASA 5505.
>>
>>
>> On Wednesday, June 1, 2016 at 1:59:34 AM UTC-5, Ludi Fang wrote:
>>>
>>> *I could login the cisco device with SSH and run the show version
>>> successfully.*
>>>
>>> -----------------------------------------------------------------------------------------------------------------
>>> [root@peklnelh03 ansible]# ssh [email protected]
>>> [email protected]'s password:
>>> **********************************************************************
>>> This is a private property facility to be accessed and used for Lenovo
>>> internal systems. Unauthorized Access Prohibited!
>>> **********************************************************************
>>> ***********************************************************************
>>> *  Warning Notice:                                                    *
>>> *    ip verify reverse-path interface is not supported      *
>>> Type help or '?' for a list of available commands.
>>> CNSHPFW5510-01> show version
>>>
>>> Cisco Adaptive Security Appliance Software Version 8.2(5)51
>>> Device Manager Version 5.2(4)
>>>
>>> ---------------------------------------------------------------------------------------------------------------------
>>> *However, I run the ios_command with ansible, I got this error:*
>>>
>>>
>>> *------------------------------------------------------------------------------------------------------------------------------------*
>>> TASK [ios_command]
>>> *************************************************************
>>> fatal: [10.106.65.xxx]: FAILED! => {"changed": false, "commands":
>>> "terminal length 0", "failed": true, "msg": "terminal length 0\r\n
>>>         ^\r\nERROR: % Invalid input detected at '^' marker.\r\n\r> "}
>>>
>>> - hosts: ios
>>>   gather_facts: no
>>>   connection: local
>>>
>>>   tasks:
>>>   - name: LOGIN
>>>     include_vars: secrets.yaml
>>>
>>>   - name: PROVIDER
>>>     set_fact:
>>>       provider:
>>>         host: "{10.106.65.xxx}"
>>>         username: "{xxx}"
>>>         password: "{6785493@bcdD}"
>>>         auth_pass: "{cisco}"
>>>   - ios_command:
>>>       host: "10.106.65.xxxxx"
>>>       username: "xxxxxx"
>>>       password: "6785493@bcdD"
>>>       port: "22"
>>>       commands:
>>>         - show version
>>>     register: version
>>>   - debug: var=version.stdout_lines
>>>
>>> ---------------------------------------------------------------------------------------------------------------------
>>> *Could someone give me some advice to fix this issue?*
>>>
>>> --
>> 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/5cc05fda-51a7-4b68-b24d-e47acdd2aff3%40googlegroups.com
>> <https://groups.google.com/d/msgid/ansible-project/5cc05fda-51a7-4b68-b24d-e47acdd2aff3%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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/topic/ansible-project/QWMQJCUavV0/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/msgid/ansible-project/CAEkdrMg4wF5hazYTj-jUEuX0S%3D3QLhB2YEG%3DV9OBpm9u3bVyHQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAEkdrMg4wF5hazYTj-jUEuX0S%3D3QLhB2YEG%3DV9OBpm9u3bVyHQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> 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/CAM8dj%3D2ymzRtyD%3D5WKG7y3jadOdchhzrFEtEKt_JxN%2BebVAGPQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to