Optimized healing function for port conflicts

This commit is contained in:
2025-04-15 15:27:33 +02:00
parent b5dc999584
commit 58229e2255
6 changed files with 81 additions and 16 deletions

View File

@@ -9,13 +9,14 @@
copy:
src: heal-docker.py
dest: "{{heal_docker}}heal-docker.py"
notify: restart heal-docker.cymais.service
when: run_once_heal_docker is not defined
- name: create heal-docker.cymais.service
template:
src: heal-docker.service.j2
dest: /etc/systemd/system/heal-docker.cymais.service
notify: reload heal-docker.cymais.service
notify: restart heal-docker.cymais.service
when: run_once_heal_docker is not defined
- name: set service_name to the name of the current role