From: Jakub Czajka Date: Mon, 4 Dec 2023 01:54:13 +0000 (+0100) Subject: Use full paths to binaries. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=e145b1a80e400c36e1e69c99de9a109611d0c899;p=turnup.git Use full paths to binaries. --- diff --git a/install/certify.yaml b/install/certify.yaml index f862a98..beaf05d 100644 --- a/install/certify.yaml +++ b/install/certify.yaml @@ -9,7 +9,7 @@ become: true - name: Obtain a certificate for {{ item.certificate }} command: | - certbot certonly --keep-until-expiring --nginx --agree-tos \ + /usr/bin/certbot certonly --keep-until-expiring --nginx --agree-tos \ --cert-name {{ item.certificate }} --email {{ item.email }} \ --non-interactive --domains {{ item.domains | join(',') }} args: diff --git a/install/download.yaml b/install/download.yaml index 19dd2d9..8a3955a 100644 --- a/install/download.yaml +++ b/install/download.yaml @@ -12,7 +12,7 @@ state: directory become: true - name: Download {{ item.name }} to {{ item.dest }} - command: python3 -m gdrive_knife download --token {{ auth_token }} \ + command: /usr/bin/python3 -m gdrive_knife download --token {{ auth_token }} \ --key {{ encryption_key }} {{ item.name }} {{ item.dest }} args: creates: "{{ item.dest }}/{{ item.name }}" diff --git a/turnup.yaml b/turnup.yaml index f08b34a..12fae9c 100644 --- a/turnup.yaml +++ b/turnup.yaml @@ -28,7 +28,8 @@ patterns: "*.yaml" recurse: true register: post_receive_scripts - - shell: ansible-playbook --connection=local {{ item.path }} + - name: Execute configuration playbook + shell: /usr/bin/ansible-playbook --connection=local {{ item.path }} with_items: "{{ post_receive_scripts.files }}" - name: Restart postgresql service: @@ -36,6 +37,6 @@ state: restarted become: yes - name: Restore database from backup - command: psql --username=postgres --file=/tmp/database + command: /usr/bin/psql --username=postgres --file=/tmp/database - include_tasks: install/ssh_public_keys.yaml with_items: "{{ users }}"