tmpreaper: permit to switch back to ctime
This commit is contained in:
parent
c00a4f62ae
commit
4507508a10
|
@ -11,10 +11,17 @@
|
|||
- name: Change the date check criteria from ctime to mtime
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/cron.daily/tmpreaper
|
||||
regexp: '^ --ctime \\'
|
||||
regexp: '^ --[c|m]time \\'
|
||||
line: ' --mtime \'
|
||||
when: not tmpreaper_use_ctime
|
||||
|
||||
- name: Change the date check criteria from ctime to mtime
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/cron.daily/tmpreaper
|
||||
regexp: '^ --[c|m]time \\'
|
||||
line: ' --ctime \'
|
||||
when: tmpreaper_use_ctime
|
||||
|
||||
- name: Install the tmpreaper configuration
|
||||
ansible.builtin.template: src=tmpreaper.conf.j2 dest=/etc/tmpreaper.conf owner=root group=root mode=0444
|
||||
|
||||
|
|
Loading…
Reference in New Issue