summaryrefslogtreecommitdiff
diff options
authorBob Proulx <[email protected]>2025-09-11 14:03:30 -0600
committerBob Proulx <[email protected]>2025-09-11 14:03:30 -0600
commit893de132da1c815b866486c8a9743d33921f2e9a (patch)
tree1de8cdb11dba98f6ea835aa1024ff0c8dfefd77d
parent2276cb2e21ff9345cd10662139d45ef460ef23a1 (diff)
downloadsavannah-medley-scripts-main.tar.gz
Delete ansible tmpfile lint left behindHEADmain
Ansible builds up thousands of forgotten files in tmp some that have dates back years. Expire anything in that temporary directory off that is longer than the threshold days of mtime.
-rwxr-xr-xscripts/misc-config9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/misc-config b/scripts/misc-config
index 680fb8e..d10d5c8 100755
--- a/scripts/misc-config
+++ b/scripts/misc-config
@@ -588,5 +588,14 @@ if [ -f "$cnf" ]; then
fi
################################################################
+# Ansible builds up thousands of forgotten files in tmp some that have
+# dates back years. Expire anything in that temporary directory off
+# that is longer than the threshold days of mtime.
+
+if [ -d /root/.ansible/tmp ]; then
+ find /root/.ansible/tmp -type f -mtime +10 -delete
+fi
+
+################################################################
exit 0