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" dest: "/opt/dnsmasq/docker-compose.yml"
mode: "{{ docker_compose_file_mask }}" mode: "{{ docker_compose_file_mask }}"
owner: "{{ docker_user.name }}" owner: "{{ docker_user.name }}"
validate: /usr/bin/docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true
become_user: root become_user: root

View file

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

View file

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

View file

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