Validate compose files
This commit is contained in:
parent
a9a27d617b
commit
31462f85ee
4 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue