]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ansible: Set tmpwatch/tmpcleaner args correctly 1849/head
authorDavid Galloway <dgallowa@redhat.com>
Thu, 17 Jun 2021 23:17:15 +0000 (19:17 -0400)
committerDavid Galloway <dgallowa@redhat.com>
Fri, 18 Jun 2021 15:01:48 +0000 (11:01 -0400)
https://github.com/ceph/ceph-build/pull/1838#pullrequestreview-686910470

Signed-off-by: David Galloway <dgallowa@redhat.com>
ansible/examples/slave.yml

index 810546766d04f64aeef5e37a772e90f4183a821f..b9dc5fd82113a9060fb092195fbe2ef8fa2761d7 100644 (file)
@@ -58,6 +58,7 @@
           - ant
           - tmpreaper
         tmp_cleaner_name: tmpreaper
+        tmp_cleaner_args: "--runtime=0 30d /tmp/"
       when: ansible_os_family == "Debian"
       tags: always
 
           - libffi-devel
           - tmpwatch
         tmp_cleaner_name: tmpwatch
+        tmp_cleaner_args: "30d /tmp/"
       when: ansible_os_family == "RedHat"
       tags: always
 
           - osc
           - build
         tmp_cleaner_name: tmpwatch
+        tmp_cleaner_args: "30d /tmp/"
       when: ansible_os_family == "Suse"
       tags: always
 
           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