From 62766cf1fd721d278e95821e05e6b41f7888eed5 Mon Sep 17 00:00:00 2001 From: boom2 Date: Tue, 21 Nov 2023 14:11:56 -0500 Subject: initial commit --- ansible-practice/02-playbook-list-files.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 ansible-practice/02-playbook-list-files.yml (limited to 'ansible-practice/02-playbook-list-files.yml') 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 -- cgit v1.2.3-54-g00ecf