chore: added docker_compose_deploy variable

This commit is contained in:
2024-02-25 19:34:48 +00:00
parent b6bfaba43e
commit 25d0deb814
2 changed files with 3 additions and 1 deletions

View File

@@ -20,3 +20,5 @@ swarm_init: false
docker_cron_path: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" docker_cron_path: "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"
docker_cronjob_prune: true docker_cronjob_prune: true
docker_compose_deploy: true

View File

@@ -12,7 +12,7 @@
- name: deploy compose files - name: deploy compose files
include_tasks: composes.yml include_tasks: composes.yml
when: docker_compose_stat.stat.exists when: docker_compose_deploy and docker_compose_stat.stat.exists
- name: Configure docker system prune with cron - name: Configure docker system prune with cron
when: docker_cronjob_prune when: docker_cronjob_prune