From: Oleg Broytman Date: Sun, 14 Jul 2019 06:39:05 +0000 (+0300) Subject: Feat: Add playbooks related to ~/.ansible/tmp X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=42a805c1985cddd3b18349d9500cc0ea81ac6a31;p=ansible.git Feat: Add playbooks related to ~/.ansible/tmp --- diff --git a/playbooks/ansible-cleanup-tmp.yml b/playbooks/ansible-cleanup-tmp.yml new file mode 100644 index 0000000..2b46a32 --- /dev/null +++ b/playbooks/ansible-cleanup-tmp.yml @@ -0,0 +1,9 @@ +- name: Cleanup ~/.ansible/tmp + hosts: "{{ hosts | default('all') }}" + gather_facts: false + tasks: + - name: Cleanup ~/.ansible/tmp + command: "rm -rf ~/.ansible/tmp/*" + args: + warn: false + ignore_errors: true diff --git a/playbooks/ansible-list-tmp.yml b/playbooks/ansible-list-tmp.yml new file mode 100644 index 0000000..ca3e996 --- /dev/null +++ b/playbooks/ansible-list-tmp.yml @@ -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 }}"