Add option to disable reload timer

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-03-26 19:36:25 +01:00
parent 5e66cae811
commit 8ea3dcb3ae
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 3 additions and 1 deletions

View file

@ -1,5 +1,6 @@
---
docker_compose_reload_enabled: true
docker_compose_reload_minutes: 15
docker_compose_stop_action: down
docker_compose_validate: true

View file

@ -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: