aboutsummaryrefslogtreecommitdiff
path: root/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/main.yml')
-rw-r--r--tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/tasks/main.yml b/tasks/main.yml
index 7b67816..dd3dd98 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -26,3 +26,9 @@
src: /etc/sv/postgres
dest: /var/service/postgres
follow: false
+- name: Write pgpass for 'root'
+ copy:
+ content: '{{postgres_pgpass}}'
+ dest: '/root/.pgpass'
+ mode: '0600'
+ when: postgres_pgpass is defined