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

7 lines
242 B
YAML

- name: create {{service_name}}.timer
template:
src: dummy.timer.j2
dest: "/etc/systemd/system/{{service_name}}.timer"
register: dummy_timer
changed_when: dummy_timer.changed or activate_all_timers | bool
notify: restart timer