]> git.phdru.name Git - ansible.git/blobdiff - playbooks/ansible/list-tmp.yaml
Feat: Rename `*.yml` to `*.yaml`
[ansible.git] / playbooks / ansible / list-tmp.yaml
diff --git a/playbooks/ansible/list-tmp.yaml b/playbooks/ansible/list-tmp.yaml
new file mode 100644 (file)
index 0000000..e93b373
--- /dev/null
@@ -0,0 +1,10 @@
+- name: List ~/.ansible/tmp
+  hosts: "{{ hosts | default('all') }}"
+  gather_facts: false
+  tasks:
+    - name: List ~/.ansible/tmp
+      shell: "ls -1 ~/.ansible/tmp | wc -l"
+      register: ls
+      changed_when: false
+    - debug:
+        msg: "{{ ls.stdout }}"