Shorted maintenance- to maint-

This commit is contained in:
2025-07-09 03:25:03 +02:00
parent ae5f021b8d
commit d0bd33fee3
63 changed files with 96 additions and 96 deletions

View File

@@ -0,0 +1,37 @@
- name: "create {{heal_docker}}"
file:
path: "{{heal_docker}}"
state: directory
mode: 0755
when: run_once_heal_docker is not defined
- name: create maint-docker-heal.py
copy:
src: maint-docker-heal.py
dest: "{{heal_docker}}maint-docker-heal.py"
notify: restart maint-docker-heal.cymais.service
when: run_once_heal_docker is not defined
- name: create maint-docker-heal.cymais.service
template:
src: maint-docker-heal.service.j2
dest: /etc/systemd/system/maint-docker-heal.cymais.service
notify: restart maint-docker-heal.cymais.service
when: run_once_heal_docker is not defined
- name: set service_name to the name of the current role
set_fact:
service_name: "{{ role_name }}"
when: run_once_heal_docker is not defined
- name: "include role for generic-timer for {{service_name}}"
include_role:
name: generic-timer
vars:
on_calendar: "{{on_calendar_heal_docker}}"
when: run_once_heal_docker is not defined
- name: run the heal_docker tasks once
set_fact:
run_once_heal_docker: true
when: run_once_heal_docker is not defined