diff options
| author | Bob Proulx <[email protected]> | 2025-09-11 14:03:30 -0600 |
|---|---|---|
| committer | Bob Proulx <[email protected]> | 2025-09-11 14:03:30 -0600 |
| commit | 893de132da1c815b866486c8a9743d33921f2e9a (patch) | |
| tree | 1de8cdb11dba98f6ea835aa1024ff0c8dfefd77d | |
| parent | 2276cb2e21ff9345cd10662139d45ef460ef23a1 (diff) | |
| download | savannah-medley-scripts-main.tar.gz | |
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-x | scripts/misc-config | 9 |
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 |
