Update compose path to not be absolute

This relies on `which` to find the correct binary instead
This commit is contained in:
Jake Howard 2021-02-07 15:59:18 +00:00
parent a95ceb348f
commit 870ac50c58
Signed by: jake
GPG key ID: 57AFB45680EDD477
17 changed files with 17 additions and 17 deletions

View file

@ -12,6 +12,6 @@
dest: /opt/deluge/docker-compose.yml dest: /opt/deluge/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 validate: docker-compose -f %s config
notify: restart deluge notify: restart deluge
become: true become: true

View file

@ -12,6 +12,6 @@
dest: /opt/duplicati/docker-compose.yml dest: /opt/duplicati/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 validate: docker-compose -f %s config
notify: restart duplicati notify: restart duplicati
become: true become: true

View file

@ -20,6 +20,6 @@
dest: /opt/gitea/docker-compose.yml dest: /opt/gitea/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 validate: docker-compose -f %s config
notify: restart gitea notify: restart gitea
become: true become: true

View file

@ -20,6 +20,6 @@
dest: /opt/pages/docker-compose.yml dest: /opt/pages/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 validate: docker-compose -f %s config
notify: restart pages notify: restart pages
become: true become: true

View file

@ -28,6 +28,6 @@
dest: /opt/plausible/docker-compose.yml dest: /opt/plausible/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 validate: docker-compose -f %s config
notify: restart plausible notify: restart plausible
become: true become: true

View file

@ -12,7 +12,7 @@
dest: /opt/calibre/docker-compose.yml dest: /opt/calibre/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 validate: docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true

View file

@ -12,7 +12,7 @@
dest: /opt/gotify/docker-compose.yml dest: /opt/gotify/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 validate: docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true

View file

@ -15,7 +15,7 @@
dest: /opt/librespeed/docker-compose.yml dest: /opt/librespeed/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 validate: docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true

View file

@ -15,7 +15,7 @@
dest: /opt/nextcloud/docker-compose.yml dest: /opt/nextcloud/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 validate: docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true

View file

@ -12,7 +12,7 @@
dest: /opt/quassel/docker-compose.yml dest: /opt/quassel/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 validate: docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true

View file

@ -15,7 +15,7 @@
dest: /opt/synapse/docker-compose.yml dest: /opt/synapse/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 validate: docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true

View file

@ -21,7 +21,7 @@
dest: /opt/tt-rss/docker-compose.yml dest: /opt/tt-rss/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 validate: docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true

View file

@ -15,7 +15,7 @@
dest: /opt/wallabag/docker-compose.yml dest: /opt/wallabag/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 validate: docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true

View file

@ -12,7 +12,7 @@
dest: /opt/whoami/docker-compose.yml dest: /opt/whoami/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 validate: docker-compose -f %s config
register: compose_file register: compose_file
become: true become: true

View file

@ -26,7 +26,7 @@
dest: /opt/traefik/docker-compose.yml dest: /opt/traefik/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 validate: docker-compose -f %s config
notify: restart traefik notify: restart traefik
become: true become: true

View file

@ -15,6 +15,6 @@
dest: /opt/upload/docker-compose.yml dest: /opt/upload/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 validate: docker-compose -f %s config
notify: restart upload notify: restart upload
become: true become: true

View file

@ -12,7 +12,7 @@
dest: /opt/yourls/docker-compose.yml dest: /opt/yourls/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 validate: docker-compose -f %s config
notify: restart yourls notify: restart yourls
become: true become: true