From 5f58d90822b2e130fda23f325d847b308c6e7262 Mon Sep 17 00:00:00 2001 From: Vitaliy Kukharik <37010174+vitabaks@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:58:38 +0300 Subject: [PATCH] pgpass: run the task from the root user (#791) --- automation/roles/pgpass/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 %}