Another big round of refactoring and cleaning...

This commit is contained in:
2025-07-11 17:55:26 +02:00
parent aa61bf2a44
commit 168c5c0da6
323 changed files with 761 additions and 811 deletions

View File

@@ -0,0 +1,33 @@
- block:
- name: "create {{restart_docker_folder}}"
file:
path: "{{restart_docker_folder}}"
state: directory
mode: 0755
- name: create {{restart_docker_script}}
copy:
src: sys-rpr-docker-hard.py
dest: "{{restart_docker_script}}"
- name: configure sys-rpr-docker-hard.cymais.service
template:
src: sys-rpr-docker-hard.service.j2
dest: /etc/systemd/system/sys-rpr-docker-hard.cymais.service
notify: "reload sys-rpr-docker-hard.cymais.service"
- name: "set 'service_name' to '{{ role_name }}'"
set_fact:
service_name: "{{ role_name }}"
- name: "include role for sys-timer for {{service_name}}"
include_role:
name: sys-timer
vars:
on_calendar: "{{on_calendar_restart_docker}}"
- name: run the restart_docker_volumes tasks once
set_fact:
run_once_restart_docker: true
when: run_once_restart_docker is not defined