diff options
Diffstat (limited to 'ansible-practice/03-playbook-local-action.yml')
| -rw-r--r-- | ansible-practice/03-playbook-local-action.yml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ansible-practice/03-playbook-local-action.yml b/ansible-practice/03-playbook-local-action.yml new file mode 100644 index 0000000..787a6c3 --- /dev/null +++ b/ansible-practice/03-playbook-local-action.yml @@ -0,0 +1,13 @@ +# how to use the 'local_action' module to list files locally +# this is not working !!! +# https://www.middlewareinventory.com/blog/run-ansible-playbook-locally/ + +--- +- name: "03 - Playing with Ansible - using local_action module" + tasks: + - name: "just execute a ls -lrt command" + local_action: shell ls -lrt + register: "output" + + - debug: var=output.stdout_lines +...
\ No newline at end of file |
