mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 14:11:03 +01:00
17 lines
533 B
YAML
17 lines
533 B
YAML
- name: set service_name to the name of the current role
|
|
set_fact:
|
|
service_name: "{{ role_name }}"
|
|
when: run_once_cleanup_backups_timer is not defined
|
|
|
|
- name: "include role for systemd-timer for {{service_name}}"
|
|
include_role:
|
|
name: systemd-timer
|
|
vars:
|
|
on_calendar: "{{on_calendar_cleanup_backups}}"
|
|
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
|