xoxys.docker_tidy/tasks/main.yml

29 lines
690 B
YAML
Raw Normal View History

2020-03-21 11:40:49 +00:00
---
2024-02-18 20:18:02 +00:00
- 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