Added play for getting the server status - basic info

This commit is contained in:
Vlad 2021-04-12 23:49:52 +01:00
parent 1650f9d363
commit 730eb10d57

16
home_linux/get_status.yml Normal file
View 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