computer-playbook/roles/systemd-timer/tasks/main.yml

13 lines
363 B
YAML
Raw Normal View History

2024-01-10 11:26:00 +01:00
- name: create {{service_name}}.cymais.timer
2024-01-04 11:40:39 +01:00
template:
src: dummy.timer.j2
2024-01-10 11:26:00 +01:00
dest: "/etc/systemd/system/{{service_name}}.cymais.timer"
2024-01-04 11:40:39 +01:00
register: dummy_timer
2024-04-04 15:45:53 +02:00
- name: "restart timer"
systemd:
daemon_reload: yes
name: "{{service_name}}.cymais.timer"
state: restarted
enabled: yes
when: dummy_timer.changed or activate_all_timers | bool