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.


-- 
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/f7e6eb7f-7cfa-4a47-a808-5f1f155269ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to