]> git.phdru.name Git - ansible.git/blobdiff - playbooks/ansible-list-tmp.yml
Feat: Add playbooks related to ~/.ansible/tmp
[ansible.git] / playbooks / ansible-list-tmp.yml
diff --git a/playbooks/ansible-list-tmp.yml b/playbooks/ansible-list-tmp.yml
new file mode 100644 (file)
index 0000000..ca3e996
--- /dev/null
@@ -0,0 +1,9 @@
+- name: List ~/.ansible/tmp
+  hosts: "{{ hosts | default('all') }}"
+  gather_facts: false
+  tasks:
+    - name: List ~/.ansible/tmp
+      command: "ls -lAF ~/.ansible/tmp"
+      register: ls
+    - debug:
+        msg: "{{ ls.stdout }}"