Invalid input detected at '^' marker (Ansible 2.2 using ios_config)

245 views
Skip to first unread message

Kyle Patton

unread,
Dec 28, 2016, 10:53:30 AM12/28/16
to Ansible Project
---

- 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.

Peter Sprygada

unread,
Jan 6, 2017, 2:21:23 PM1/6/17
to ansible...@googlegroups.com
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?

--
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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/134e298a-b1e8-4eec-90d1-98a2ce2073a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages