diff --git a/automation/roles/pgpass/tasks/main.yml b/automation/roles/pgpass/tasks/main.yml index bfddaf1b2..1ef041e02 100644 --- a/automation/roles/pgpass/tasks/main.yml +++ b/automation/roles/pgpass/tasks/main.yml @@ -2,7 +2,7 @@ - name: "Configure a password file ({{ postgresql_home_dir }}/.pgpass)" become: true - become_user: postgres + become_user: root ansible.builtin.copy: content: | {% for pgpass in postgresql_pgpass %}