]> git.phdru.name Git - ansible.git/commitdiff
Feat(ansible): Add shell script to cleanup `.ansible/tmp`
authorOleg Broytman <phd@phdru.name>
Mon, 24 Feb 2020 23:16:42 +0000 (02:16 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 24 Feb 2020 23:16:42 +0000 (02:16 +0300)
playbooks/ansible/cleanup-tmp.sh [new file with mode: 0755]

diff --git a/playbooks/ansible/cleanup-tmp.sh b/playbooks/ansible/cleanup-tmp.sh
new file mode 100755 (executable)
index 0000000..16158c3
--- /dev/null
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+echo localhost
+rm -rf .ansible/tmp/\*
+
+for host in iskra-aviel.phdru.name phdru.name oper.med.ru; do
+   echo $host
+   ssh -4 $host exec rm -rf .ansible/tmp/\*
+done