From 730eb10d5768b581d3e76c6ae795eb08eeb07137 Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 12 Apr 2021 23:49:52 +0100 Subject: [PATCH] Added play for getting the server status - basic info --- home_linux/get_status.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 home_linux/get_status.yml 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