diff --git a/home_linux/get_status.yml b/home_linux/get_status.yml new file mode 100644 index 0000000..ba64bfd --- /dev/null +++ b/home_linux/get_status.yml @@ -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