]> git.phdru.name Git - ansible.git/blobdiff - playbooks/ansible/cleanup-tmp.sh
Feat(ansible): Add shell script to cleanup `.ansible/tmp`
[ansible.git] / playbooks / ansible / cleanup-tmp.sh
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