From b1a547d2a680177780a766c350461e73dc3efb6d Mon Sep 17 00:00:00 2001 From: kurokobo Date: Thu, 19 Jan 2023 01:59:03 +0900 Subject: [PATCH] fix: add quotes for PGPASSWORD in upgrade_postgres.yml (fixes #1166) (#1167) --- roles/installer/tasks/upgrade_postgres.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/installer/tasks/upgrade_postgres.yml b/roles/installer/tasks/upgrade_postgres.yml index 4da315d1..5edae076 100644 --- a/roles/installer/tasks/upgrade_postgres.yml +++ b/roles/installer/tasks/upgrade_postgres.yml @@ -93,7 +93,7 @@ command: | bash -c """ set -e -o pipefail - PGPASSWORD={{ awx_postgres_pass }} {{ pgdump }} | PGPASSWORD={{ awx_postgres_pass }} {{ pg_restore }} + PGPASSWORD='{{ awx_postgres_pass }}' {{ pgdump }} | PGPASSWORD='{{ awx_postgres_pass }}' {{ pg_restore }} echo 'Successful' """ no_log: "{{ no_log }}"