]> git.phdru.name Git - ansible.git/commitdiff
Feat(ansible/list-tmp): Count temp directories
authorOleg Broytman <phd@phdru.name>
Tue, 6 Aug 2019 22:25:08 +0000 (01:25 +0300)
committerOleg Broytman <phd@phdru.name>
Tue, 6 Aug 2019 22:25:08 +0000 (01:25 +0300)
playbooks/ansible/list-tmp.yml

index 8e9f9c76072a143d8bc60b614aa7aa6d5b057098..e93b373f9cc7a5fff2d03c84194646c7bfdd57f9 100644 (file)
@@ -3,7 +3,7 @@
   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: