View difference between Paste ID: CZMquujW and bhJhAcMr
SHOW: | | - or go back to the newest paste.
1
---
2
  - hosts: all
3
    vars:
4
      ansible_connection: network_cli
5
      ansible_network_os: ironware
6
      ansible_user: blah
7
      ansible_ssh_pass: blah
8
      ansible_become: yes
9
      ansible_become_method: enable
10
      ansible_python_interpreter: /usr/bin/python
11
    gather_facts: no
12
    tasks:
13
      - name: run commands
14
        ironware_command:
15
          commands:
16
            - rconsole 15
17
            - dm monitor
18
            - dmsg
19
        register: ironware_result
20
      - name: command output
21
        debug:
22
          var: ironware_result.stdout_lines