mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Created role for systemd timers
This commit is contained in:
7
roles/systemd-timer/tasks/main.yml
Normal file
7
roles/systemd-timer/tasks/main.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
- 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
|
Reference in New Issue
Block a user