Validate compose files

This commit is contained in:
Jake Howard 2020-01-28 22:17:12 +00:00
parent a9a27d617b
commit 31462f85ee
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 4 additions and 0 deletions

View file

@ -16,6 +16,7 @@
dest: "/opt/dnsmasq/docker-compose.yml"
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
register: compose_file
become: true
become_user: root

View file

@ -13,6 +13,7 @@
dest: "/opt/netdata/docker-compose.yml"
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
register: compose_file
become: true
become_user: root

View file

@ -13,6 +13,7 @@
dest: "/opt/portainer/docker-compose.yml"
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
register: compose_file
become: true
become_user: root

View file

@ -13,6 +13,7 @@
dest: "/opt/watchtower/docker-compose.yml"
mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
register: compose_file
become: true
become_user: root