mirror of
https://github.com/luzifer-ansible/docker-compose.git
synced 2024-11-08 13:39:59 +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_stop_action: down
|
||||
docker_compose_validate: true
|
||||
|
|
|
@ -111,13 +111,14 @@
|
|||
name: docker-compose-reload.timer
|
||||
daemon_reload: true
|
||||
enabled: true
|
||||
when: docker_compose_reload_enabled
|
||||
|
||||
- name: Restart docker-compose-reload.timer if it changed
|
||||
systemd:
|
||||
name: docker-compose-reload.timer
|
||||
daemon_reload: true
|
||||
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
|
||||
copy:
|
||||
|
|
Loading…
Reference in a new issue