mirror of
https://github.com/luzifer-ansible/docker-compose.git
synced 2024-11-09 14:00:05 +00:00
Add option to disable reload timer
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
5e66cae811
commit
8ea3dcb3ae
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
docker_compose_reload_enabled: true
|
||||||
docker_compose_reload_minutes: 15
|
docker_compose_reload_minutes: 15
|
||||||
docker_compose_stop_action: down
|
docker_compose_stop_action: down
|
||||||
docker_compose_validate: true
|
docker_compose_validate: true
|
||||||
|
|
|
@ -111,13 +111,14 @@
|
||||||
name: docker-compose-reload.timer
|
name: docker-compose-reload.timer
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
enabled: true
|
enabled: true
|
||||||
|
when: docker_compose_reload_enabled
|
||||||
|
|
||||||
- name: Restart docker-compose-reload.timer if it changed
|
- name: Restart docker-compose-reload.timer if it changed
|
||||||
systemd:
|
systemd:
|
||||||
name: docker-compose-reload.timer
|
name: docker-compose-reload.timer
|
||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
state: restarted
|
state: restarted
|
||||||
when: docker_compose_reload_timer.changed and packer_build_name is not defined
|
when: docker_compose_reload_enabled and docker_compose_reload_timer.changed and packer_build_name is not defined
|
||||||
|
|
||||||
- name: Install docker-clean script
|
- name: Install docker-clean script
|
||||||
copy:
|
copy:
|
||||||
|
|
Loading…
Reference in a new issue