---

- 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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to