29 lines
690 B
YAML
29 lines
690 B
YAML
---
|
|
- name: Write environment file
|
|
ansible.builtin.template:
|
|
src: etc/sysconfig/tidy.j2
|
|
dest: /etc/sysconfig/tidy
|
|
mode: "0600"
|
|
notify: __tidy_restart
|
|
|
|
- name: Write timer file
|
|
ansible.builtin.template:
|
|
src: etc/systemd/system/tidy.timer.j2
|
|
dest: /etc/systemd/system/tidy.timer
|
|
mode: "0644"
|
|
notify: __tidy_restart
|
|
|
|
- name: Write service file
|
|
ansible.builtin.template:
|
|
src: etc/systemd/system/tidy.service.j2
|
|
dest: /etc/systemd/system/tidy.service
|
|
mode: "0644"
|
|
notify: __tidy_restart
|
|
|
|
- name: Ensure dockertidy timer is up and running
|
|
ansible.builtin.service:
|
|
name: tidy.timer
|
|
daemon_reload: True
|
|
enabled: True
|
|
state: started
|