mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-23 10:45:03 +01:00
13 lines
363 B
YAML
13 lines
363 B
YAML
- name: create {{service_name}}.cymais.timer
|
|
template:
|
|
src: dummy.timer.j2
|
|
dest: "/etc/systemd/system/{{service_name}}.cymais.timer"
|
|
register: dummy_timer
|
|
|
|
- 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 |