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

23 views
Skip to first unread message

Kyle Patton

unread,
Dec 28, 2016, 10:53:26 AM12/28/16
to Ansible Project
I've tried numerous different configurations to get ios_config to shutdown a port.

According to documentation I think this should work.

---

- name: provider for logging into switches / routers
  set_fact:
    cli:
      host: "{{ inventory_hostname }}"
      username: "{{ ios_username }}"
      password: "{{ ios_password }}"
      auth_pass: "{{ ios_password }}"
  no_log: True


- name: push a configuration onto the device
  ios_config:
    src: test.j2
    match: none
    provider: "{{ cli }}"

(
test.j2 contains

interface Gi5/8
shutdown 
)

Exits with error displayed in title. I've tried with authorize set to true as well.


Reply all
Reply to author
Forward
0 new messages