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
|
- name: Change the date check criteria from ctime to mtime
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/cron.daily/tmpreaper
|
path: /etc/cron.daily/tmpreaper
|
||||||
regexp: '^ --ctime \\'
|
regexp: '^ --[c|m]time \\'
|
||||||
line: ' --mtime \'
|
line: ' --mtime \'
|
||||||
when: not tmpreaper_use_ctime
|
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
|
- name: Install the tmpreaper configuration
|
||||||
ansible.builtin.template: src=tmpreaper.conf.j2 dest=/etc/tmpreaper.conf owner=root group=root mode=0444
|
ansible.builtin.template: src=tmpreaper.conf.j2 dest=/etc/tmpreaper.conf owner=root group=root mode=0444
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue