]> git.ekhem.eu.org Git - turnup.git/commitdiff
Use full paths to binaries.
authorJakub Czajka <jakub@ekhem.eu.org>
Mon, 4 Dec 2023 01:54:13 +0000 (02:54 +0100)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:46:45 +0000 (19:46 +0100)
install/certify.yaml
install/download.yaml
turnup.yaml

index f862a9845a107e66cc774031a04325b89942013c..beaf05d3ceea91dbaffab2f2188d35fdefea601a 100644 (file)
@@ -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:
index 19dd2d928b818b8b74b06fd8337d3db9837e72ef..8a3955abbe82a7cf808f95c8cad752c56df6ccfb 100644 (file)
@@ -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 }}"
index f08b34a33ffc8114d51c500ba7ae82c8635a08c4..12fae9c7d017480b6505cdbefe97987cab8b87bb 100644 (file)
@@ -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 }}"