]> git.phdru.name Git - ansible.git/blobdiff - playbooks/ansible/list-tmp.yml
Feat(logcheck): Add `local-no-tty`
[ansible.git] / playbooks / ansible / list-tmp.yml
index ca3e9968466d143d062cd2a6dfa6fd3aba6835a6..e93b373f9cc7a5fff2d03c84194646c7bfdd57f9 100644 (file)
@@ -3,7 +3,8 @@
   gather_facts: false
   tasks:
     - name: List ~/.ansible/tmp
-      command: "ls -lAF ~/.ansible/tmp"
+      shell: "ls -1 ~/.ansible/tmp | wc -l"
       register: ls
+      changed_when: false
     - debug:
         msg: "{{ ls.stdout }}"