mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Optimized code performance
This commit is contained in:
parent
8863a00908
commit
aeb64aaa45
@ -19,11 +19,6 @@
|
|||||||
notify: reload cleanup-failed-docker-backups.service daemon
|
notify: reload cleanup-failed-docker-backups.service daemon
|
||||||
when: run_once_cleanup_failed_docker_backups is not defined
|
when: run_once_cleanup_failed_docker_backups is not defined
|
||||||
|
|
||||||
- name: run the cleanup_failed_docker_backups tasks once
|
|
||||||
set_fact:
|
|
||||||
run_once_cleanup_failed_docker_backups: true
|
|
||||||
when: run_once_cleanup_failed_docker_backups is not defined
|
|
||||||
|
|
||||||
- name: create cleanup-failed-docker-backups.timer
|
- name: create cleanup-failed-docker-backups.timer
|
||||||
template:
|
template:
|
||||||
src: cleanup-failed-docker-backups.timer.j2
|
src: cleanup-failed-docker-backups.timer.j2
|
||||||
@ -31,3 +26,9 @@
|
|||||||
register: cleanup_failed_docker_backups_timer
|
register: cleanup_failed_docker_backups_timer
|
||||||
changed_when: cleanup_failed_docker_backups_timer.changed or activate_all_timers | bool
|
changed_when: cleanup_failed_docker_backups_timer.changed or activate_all_timers | bool
|
||||||
notify: restart cleanup-failed-docker-backups.timer
|
notify: restart cleanup-failed-docker-backups.timer
|
||||||
|
when: run_once_cleanup_failed_docker_backups is not defined
|
||||||
|
|
||||||
|
- name: run the cleanup_failed_docker_backups tasks once
|
||||||
|
set_fact:
|
||||||
|
run_once_cleanup_failed_docker_backups: true
|
||||||
|
when: run_once_cleanup_failed_docker_backups is not defined
|
Loading…
Reference in New Issue
Block a user