From 6e53da4a3363bbedaae8c21e0aef987b53ea4ef1 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 7 Dec 2020 15:56:58 +0100 Subject: [PATCH] Add directories to tmpreaper without overwriting the defaults. --- defaults/main.yml | 1 + templates/tmpreaper.conf.j2 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/defaults/main.yml b/defaults/main.yml index d35af90..ab69736 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -21,6 +21,7 @@ disks_and_mountpoints_list: [] tmpreaper_install: False tmpreaper_protect_extra: '' tmpreaper_dirs: '/tmp/.' +tmpreaper_extra_dirs: '' tmpreaper_delay: '256' tmpreaper_additional_options: '' tmpreaper_time: '7d' diff --git a/templates/tmpreaper.conf.j2 b/templates/tmpreaper.conf.j2 index 82569e0..475bb1b 100644 --- a/templates/tmpreaper.conf.j2 +++ b/templates/tmpreaper.conf.j2 @@ -1,7 +1,7 @@ # TMPREAPER_TIME={{ tmpreaper_time }} TMPREAPER_PROTECT_EXTRA='{{ tmpreaper_protect_extra }}' -TMPREAPER_DIRS='{{ tmpreaper_dirs }}' +TMPREAPER_DIRS='{{ tmpreaper_dirs }} {{ tmpreaper_extra_dirs }}' TMPREAPER_DELAY='{{ tmpreaper_delay }}' TMPREAPER_ADDITIONALOPTIONS='{{ tmpreaper_additional_options }}'