commit 5be38e8f20f31402b4db36448cb9c44400875088 Author: William Young Date: Thu Feb 16 12:50:40 2023 -0600 init 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