From 8c3eafb2b2c51c1238e41922f2fc608cf60f6a24 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Thu, 17 Jun 2021 19:17:15 -0400 Subject: [PATCH] ansible: Set tmpwatch/tmpcleaner args correctly https://github.com/ceph/ceph-build/pull/1838#pullrequestreview-686910470 Signed-off-by: David Galloway --- ansible/examples/slave.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ansible/examples/slave.yml b/ansible/examples/slave.yml index 81054676..b9dc5fd8 100644 --- a/ansible/examples/slave.yml +++ b/ansible/examples/slave.yml @@ -58,6 +58,7 @@ - ant - tmpreaper tmp_cleaner_name: tmpreaper + tmp_cleaner_args: "--runtime=0 30d /tmp/" when: ansible_os_family == "Debian" tags: always @@ -157,6 +158,7 @@ - libffi-devel - tmpwatch tmp_cleaner_name: tmpwatch + tmp_cleaner_args: "30d /tmp/" when: ansible_os_family == "RedHat" tags: always @@ -251,6 +253,7 @@ - osc - build tmp_cleaner_name: tmpwatch + tmp_cleaner_args: "30d /tmp/" when: ansible_os_family == "Suse" tags: always @@ -702,7 +705,7 @@ cron: name: "Delete /tmp files that have not been accessed in 30 days" special_time: daily - job: "{{ tmp_cleaner_name }} --runtime=0 30d /tmp/" + job: "{{ tmp_cleaner_name }} {{ tmp_cleaner_args }}" when: permanent|bool tags: tmp -- 2.47.3