Verified Commit b4efd9a5 authored by Sheogorath's avatar Sheogorath 🌪

Add docker-compose validation

Adding a validation after docker-compose has been deployed should
prevent rolling out invalid docker-compose file before the
docker-compose up command has to fail.

This should help to find problems with docker-compose before they get to
their persistent location and need an annoying fix.
parent 5af37104
......@@ -33,6 +33,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
register: docker_compose_yml
tags:
- docker
......
......@@ -17,6 +17,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
tags:
- docker
- nextcloud
......
......@@ -28,6 +28,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
tags:
- docker
become: true
......
......@@ -36,6 +36,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
register: docker_compose_yml
tags:
- docker
......
......@@ -52,6 +52,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
become: true
tags:
- docker
......
......@@ -58,6 +58,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
tags:
- docker
- mastodon
......
......@@ -30,6 +30,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
tags:
- docker
- matrix
......
......@@ -41,6 +41,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
register: docker_compose_yml
tags:
- docker
......
......@@ -30,6 +30,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
register: docker_compose_yml
tags:
- docker
......
......@@ -44,6 +44,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
register: docker_compose_yml
tags:
- docker
......
......@@ -21,6 +21,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
register: docker_compose_yml
tags:
- docker
......
......@@ -46,6 +46,7 @@
mode: 0600
owner: 'root'
group: 'root'
validate: docker-compose -f %s config -q
register: docker_compose_yml
tags:
- docker
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment