2020-03-21 13:05:43 +00:00
|
|
|
---
|
|
|
|
- block:
|
|
|
|
- name: Write environment file
|
|
|
|
template:
|
|
|
|
src: etc/sysconfig/tidy.j2
|
|
|
|
dest: /etc/sysconfig/tidy
|
2021-02-04 20:44:33 +00:00
|
|
|
mode: 0600
|
2020-03-21 13:05:43 +00:00
|
|
|
notify: __tidy_restart
|
|
|
|
|
|
|
|
- name: Write timer file
|
|
|
|
template:
|
|
|
|
src: etc/systemd/system/tidy.timer.j2
|
|
|
|
dest: /etc/systemd/system/tidy.timer
|
2021-02-04 20:44:33 +00:00
|
|
|
mode: 0644
|
2020-03-21 13:05:43 +00:00
|
|
|
notify: __tidy_restart
|
|
|
|
|
|
|
|
- name: Write service file
|
|
|
|
template:
|
|
|
|
src: etc/systemd/system/tidy.service.j2
|
|
|
|
dest: /etc/systemd/system/tidy.service
|
2021-02-04 20:44:33 +00:00
|
|
|
mode: 0644
|
2020-03-21 13:05:43 +00:00
|
|
|
notify: __tidy_restart
|
|
|
|
become: True
|
|
|
|
become_user: root
|