This commit is contained in:
William Young
2023-02-16 12:50:40 -06:00
commit 5be38e8f20

10
list.yaml Normal file
View File

@@ -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