Doesn't seem to work.

---
- name: show version and other user level commands
  hosts: IOL_Routers
  gather_facts: false
  connection: network_cli
  become: yes

  tasks:
    - name: run multiple commands on remote nodes
      ios_command:
        commands:
          - show run

      register: print_output

- name: result of running commands above
    - debug: 
        msg: "{{ print_output.stdout_lines | reject('equalto', '!') | list 
}}"

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e79a85e5-5726-47a3-a5aa-ce9fd4bdca7e%40googlegroups.com.

Reply via email to