mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 20:51:07 +01:00
14 lines
501 B
YAML
14 lines
501 B
YAML
- name: create cleanup-backups.timer
|
|
template:
|
|
src: "cleanup-backups.timer.j2"
|
|
dest: "/etc/systemd/system/cleanup-backups.timer"
|
|
register: cleanup_backups_timer
|
|
changed_when: cleanup_backups_timer.changed or activate_all_timers | bool
|
|
notify: restart cleanup-backups.timer
|
|
when: run_once_cleanup_backups_timer is not defined
|
|
|
|
- name: run the cleanup_backups_timer tasks once
|
|
set_fact:
|
|
run_once_cleanup_backups_timer: true
|
|
when: run_once_cleanup_backups_timer is not defined
|