On 22.08.2019 21:21, Steven Williams wrote:
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 could give us the courtesy and give us the error message, we are not mind readers.

But your indentation is not correct and you need to remove the dash on debug.


--
Kai Stian Olstad

--
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/12b55de7a025343aca4cc475f744ab83%40olstad.com.

Reply via email to