From: Oleg Broytman Date: Tue, 6 Aug 2019 22:25:08 +0000 (+0300) Subject: Feat(ansible/list-tmp): Count temp directories X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=f34f76f426ce22d5322bdd94b1b1f0882ef03eab;p=ansible.git Feat(ansible/list-tmp): Count temp directories --- diff --git a/playbooks/ansible/list-tmp.yml b/playbooks/ansible/list-tmp.yml index 8e9f9c7..e93b373 100644 --- a/playbooks/ansible/list-tmp.yml +++ b/playbooks/ansible/list-tmp.yml @@ -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: