From 5be38e8f20f31402b4db36448cb9c44400875088 Mon Sep 17 00:00:00 2001 From: William Young Date: Thu, 16 Feb 2023 12:50:40 -0600 Subject: [PATCH] init --- list.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 list.yaml diff --git a/list.yaml b/list.yaml new file mode 100644 index 0000000..9f9a4ad --- /dev/null +++ b/list.yaml @@ -0,0 +1,10 @@ +- name: List contents of /etc directory + hosts: all + become: yes + tasks: + - name: List contents of /etc directory + command: ls -la /etc + register: ls_output + - name: Print output + debug: + var: ls_output.stdout_lines