17 lines
282 B
YAML
17 lines
282 B
YAML
|
|
---
|
||
|
|
- name: Get the status of the RPI servers
|
||
|
|
hosts: all
|
||
|
|
roles:
|
||
|
|
- common
|
||
|
|
become: yes
|
||
|
|
|
||
|
|
tasks:
|
||
|
|
|
||
|
|
- name: Get device information
|
||
|
|
command: bash /home/vlad/status.sh
|
||
|
|
register: status
|
||
|
|
|
||
|
|
- name: Print device information
|
||
|
|
debug:
|
||
|
|
var: status.stdout_lines
|