hm thats strange. i dont see anything glaringly obvious.  I see it fails to
execute the command "configure terminal".  What version of IOS are you
running against?  Is AAA involved?  Can you replicate the steps manually
when logged via the same user/password combination?

On Tue, Dec 27, 2016 at 2:57 PM, Kyle Patton <[email protected]> wrote:

> ---
>
> - name: provider for logging into switches / routers
>   set_fact:
>     cli:
>       host: "{{ inventory_hostname }}"
>       username: "{{ ios_username }}"
>       password: "{{ ios_password }}"
>       auth_pass: "{{ ios_password }}"
>       authorize: yes
>   no_log: True
>
>
> - name: force push a configuration onto the device
>   ios_config:
>     src: test.j2
>     match: none
>     provider: "{{ cli }}"
>
>
> test.j2 contains the following
>
> interface Gi5/8
> shutdown
>
> "msg": "matched error in response: configure terminal\r\n
>     ^\r\n% Invalid input detected at '^' marker.
>
> --
> 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/134e298a-b1e8-4eec-90d1-98a2ce2073a6%40googlegroups.
> com
> <https://groups.google.com/d/msgid/ansible-project/134e298a-b1e8-4eec-90d1-98a2ce2073a6%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 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/CAEkdrMiN-PqDwcRSz_yCKwvxL8JVtiHcOQGjxKX0db5xp1AdUw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to