Added play for getting the server status - basic info
This commit is contained in:
parent
1650f9d363
commit
730eb10d57
16
home_linux/get_status.yml
Normal file
16
home_linux/get_status.yml
Normal file
@ -0,0 +1,16 @@
|
||||
---
|
||||
- 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
|
||||
Loading…
Reference in New Issue
Block a user