diff options
Diffstat (limited to 'ansible-practice/02-playbook-list-files.yml')
| -rw-r--r-- | ansible-practice/02-playbook-list-files.yml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/ansible-practice/02-playbook-list-files.yml b/ansible-practice/02-playbook-list-files.yml new file mode 100644 index 0000000..1056387 --- /dev/null +++ b/ansible-practice/02-playbook-list-files.yml @@ -0,0 +1,15 @@ +# list files on a host +# https://www.middlewareinventory.com/blog/run-ansible-playbook-locally/ + +--- +- name: "02 - Playing with Ansible - list files on a system" + hosts: all +# hosts: localhost +# connection: local + tasks: + - name: "just execute a ls -lrt command" + shell: "ls -lrt" + register: "output" + + - debug: var=output.stdout_lines +...
\ No newline at end of file |
