From f9f6138df1f2b7fbc7380372406f1cd597c1b85e Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 25 Feb 2020 02:16:42 +0300 Subject: [PATCH] Feat(ansible): Add shell script to cleanup `.ansible/tmp` --- playbooks/ansible/cleanup-tmp.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 playbooks/ansible/cleanup-tmp.sh diff --git a/playbooks/ansible/cleanup-tmp.sh b/playbooks/ansible/cleanup-tmp.sh new file mode 100755 index 0000000..16158c3 --- /dev/null +++ b/playbooks/ansible/cleanup-tmp.sh @@ -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 -- 2.39.2