Adapted variables

This commit is contained in:
2024-12-04 17:41:29 +01:00
parent 6efb66c92b
commit 1ac3fdebe1
13 changed files with 20 additions and 19 deletions

View File

@@ -22,7 +22,7 @@ This role automates the restart process for all `docker-compose` instances withi
2. Define the required variables in your playbook or inventory:
```yaml
path_administrator_scripts: "/path/to/administrator/scripts/"
restart_docker_volumes_folder: "/path/to/restart/volumes/"
restart_docker_folder: "/path/to/restart/volumes/"
on_calendar_restart_dockers: "daily"
```

View File

@@ -1,7 +1,7 @@
- block:
- name: "create {{restart_docker_volumes_folder}}"
- name: "create {{restart_docker_folder}}"
file:
path: "{{restart_docker_volumes_folder}}"
path: "{{restart_docker_folder}}"
state: directory
mode: 0755

View File

@@ -4,5 +4,5 @@ OnFailure=systemd-notifier.cymais@%n.service
[Service]
Type=oneshot
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_lock_script }} {{ system_maintenance_services | join(' ') }} --ignore {{system_maintenance_cleanup_services | join(' ') }} restart-docker --timeout "{{system_maintenance_lock_timeout_heal_docker}}"'
ExecStart=/bin/sh -c '/usr/bin/python {{update_docker_script}} {{path_docker_compose_instances}}'
ExecStartPre=/bin/sh -c '/usr/bin/python {{ path_system_lock_script }} {{ system_maintenance_services | join(' ') }} --ignore {{system_maintenance_cleanup_services | join(' ') }} restart-docker --timeout "{{system_maintenance_lock_timeout_restart_docker}}"'
ExecStart=/bin/sh -c '/usr/bin/python {{restart_docker_script}} {{path_docker_compose_instances}}'