mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
Use --no-acl flag when restoring to exclude GRANT and REVOKE commands
This avoids running in to the following error when pg_restore is run as the application db user from the db-management pod: pg_restore: error: could not execute query: ERROR: must be member of role postgres Command was: ALTER SCHEMA public OWNER TO postgres;
This commit is contained in:
committed by
Dimitri Savineau
parent
78864b3653
commit
c5533f47c1
@@ -83,7 +83,7 @@
|
||||
- name: Set pg_restore command
|
||||
set_fact:
|
||||
pg_restore: >-
|
||||
pg_restore --clean --if-exists
|
||||
pg_restore --clean --if-exists --no-owner --no-acl
|
||||
-U {{ awx_postgres_user }}
|
||||
-h {{ resolvable_db_host }}
|
||||
-d {{ awx_postgres_database }}
|
||||
|
||||
Reference in New Issue
Block a user