mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-12 05:36:40 +00:00
18 lines
513 B
YAML
18 lines
513 B
YAML
# run_once_sys_timer: deactivated
|
|
|
|
- name: create {{ sys_timer_file }}
|
|
template:
|
|
src: dummy.timer.j2
|
|
dest: "{{ [ DIR_SYSTEM_SERVICE, sys_timer_file ] | path_join }}"
|
|
register: dummy_timer
|
|
|
|
- name: "deploy timer"
|
|
systemd:
|
|
daemon_reload: yes
|
|
name: "{{ sys_timer_file }}"
|
|
state: stopped
|
|
enabled: false
|
|
when: dummy_timer.changed or SYS_TIMER_ALL_ENABLED | bool
|
|
async: "{{ ASYNC_TIME if ASYNC_ENABLED | bool else omit }}"
|
|
poll: "{{ ASYNC_POLL if ASYNC_ENABLED | bool else omit }}"
|