mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 23:08:06 +02:00
Adapted variables
This commit is contained in:
@@ -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"
|
||||
```
|
||||
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -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}}'
|
Reference in New Issue
Block a user