АЛ
tasks:
- name : run command on remote devices
а так:
tasks:
- name : run command on remote devices
Size: a a a
АЛ
tasks:
- name : run command on remote devices
tasks:
- name : run command on remote devices
K
K
K
L
FM
L
FM
---
- name: ololo
hosts: router_os
tasks:
- name: run command on remote devices
routeros_command:
commands: /system routerboard print
register: system_print
- name: debug_print
debug: var=system_print.stdout_lines
- name: run command and check to see if output contains routeros
routeros_command:
commands: /system resource print
wait_for: result[0] contains MikroTik
- name: run multiple commands on remote nodes
routeros_command:
commands:
- /system routerboard print
- /system identity print
Bm
K
---
- name: ololo
hosts: router_os
tasks:
- name: run command on remote devices
routeros_command:
commands: /system routerboard print
register: system_print
- name: debug_print
debug: var=system_print.stdout_lines
- name: run command and check to see if output contains routeros
routeros_command:
commands: /system resource print
wait_for: result[0] contains MikroTik
- name: run multiple commands on remote nodes
routeros_command:
commands:
- /system routerboard print
- /system identity print
K
---
- name: ololo
hosts: router_os
tasks:
- name: run command on remote devices
routeros_command:
commands: /system routerboard print
register: system_print
- name: debug_print
debug: var=system_print.stdout_lines
- name: run command and check to see if output contains routeros
routeros_command:
commands: /system resource print
wait_for: result[0] contains MikroTik
- name: run multiple commands on remote nodes
routeros_command:
commands:
- /system routerboard print
- /system identity print
K
FM
K
Bm
FM
K
S
L