mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-08 11:17:17 +02:00
Replaced .infinito.service and .infinito.timer by SOFTWARE_NAME suffix, optimized LICENSE link and update OIDC Realm and ID conf
This commit is contained in:
@@ -25,4 +25,4 @@ Developed and maintained by **Kevin Veen-Birkenbach**.
|
||||
Learn more at [www.veen.world](https://www.veen.world)
|
||||
|
||||
Part of the [Infinito.Nexus Project](https://s.infinito.nexus/code)
|
||||
License: [Infinito.Nexus NonCommercial License (CNCL)](https://s.infinito.nexus/license)
|
||||
License: [Infinito.Nexus NonCommercial License](https://s.infinito.nexus/license)
|
||||
|
@@ -1,5 +1,5 @@
|
||||
- name: restart sys-rpr-docker-soft.infinito.service
|
||||
- name: restart sys-rpr-docker-soft service
|
||||
systemd:
|
||||
name: sys-rpr-docker-soft.infinito.service
|
||||
name: sys-rpr-docker-soft{{ SYS_SERVICE_SUFFIX }}
|
||||
state: restarted
|
||||
daemon_reload: yes
|
||||
|
@@ -1,7 +1,7 @@
|
||||
galaxy_info:
|
||||
author: "Kevin Veen-Birkenbach"
|
||||
description: "Automated recovery for unhealthy or exited Docker Compose containers."
|
||||
license: "Infinito.Nexus NonCommercial License (CNCL)"
|
||||
license: "Infinito.Nexus NonCommercial License"
|
||||
license_url: "https://s.infinito.nexus/license"
|
||||
company: |
|
||||
Kevin Veen-Birkenbach
|
||||
|
@@ -10,16 +10,16 @@
|
||||
mode: "0755"
|
||||
|
||||
- name: create sys-rpr-docker-soft.py
|
||||
copy:
|
||||
src: sys-rpr-docker-soft.py
|
||||
template:
|
||||
src: sys-rpr-docker-soft.py.j2
|
||||
dest: "{{heal_docker}}sys-rpr-docker-soft.py"
|
||||
notify: restart sys-rpr-docker-soft.infinito.service
|
||||
notify: restart sys-rpr-docker-soft service
|
||||
|
||||
- name: create sys-rpr-docker-soft.infinito.service
|
||||
- name: create sys-rpr-docker-soft{{ SYS_SERVICE_SUFFIX }}
|
||||
template:
|
||||
src: sys-rpr-docker-soft.service.j2
|
||||
dest: /etc/systemd/system/sys-rpr-docker-soft.infinito.service
|
||||
notify: restart sys-rpr-docker-soft.infinito.service
|
||||
dest: /etc/systemd/system/sys-rpr-docker-soft{{ SYS_SERVICE_SUFFIX }}
|
||||
notify: restart sys-rpr-docker-soft service
|
||||
|
||||
- name: "set 'service_name' to '{{ role_name }}'"
|
||||
set_fact:
|
||||
|
@@ -40,8 +40,8 @@ def main(base_directory):
|
||||
|
||||
while blocker_running:
|
||||
try:
|
||||
bash("systemctl is-active --quiet sys-bkp-docker-2-loc.infinito.service")
|
||||
bash("systemctl is-active --quiet update-docker.infinito.service")
|
||||
bash("systemctl is-active --quiet sys-bkp-docker-2-loc{{ SYS_SERVICE_SUFFIX }}")
|
||||
bash("systemctl is-active --quiet update-docker{{ SYS_SERVICE_SUFFIX }}")
|
||||
print("Backup is running.")
|
||||
print(f"Trying again in {waiting_time} seconds.")
|
||||
time.sleep(waiting_time)
|
||||
@@ -49,8 +49,8 @@ def main(base_directory):
|
||||
blocker_running = False
|
||||
print("No blocking service is running.")
|
||||
|
||||
unhealthy_container_names = print_bash("docker ps --filter health=unhealthy --format '{{.Names}}'")
|
||||
exited_container_names = print_bash("docker ps --filter status=exited --format '{{.Names}}'")
|
||||
unhealthy_container_names = print_bash("docker ps --filter health=unhealthy --format '{% raw %}{{.Names}}{% endraw %}'")
|
||||
exited_container_names = print_bash("docker ps --filter status=exited --format '{% raw %}{{.Names}}{% endraw %}'")
|
||||
failed_containers = unhealthy_container_names + exited_container_names
|
||||
|
||||
unfiltered_failed_docker_compose_repositories = [container.split('-')[0] for container in failed_containers]
|
Reference in New Issue
Block a user