aboutsummaryrefslogtreecommitdiff
path: root/tasks/main.yml
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-10-03 18:52:48 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-10-03 18:52:48 -0400
commit5725d926f9ef7bc750f6b09bf67b33aa3e033a6f (patch)
treef174800b75b3e12ce1ce4e4e3b48077aa21bdb6a /tasks/main.yml
parent6a0aa89e3dfd7bd0755b67931532eaa173f73919 (diff)
downloadalpine-postgres-5725d926f9ef7bc750f6b09bf67b33aa3e033a6f.tar.gz
alpine-postgres-5725d926f9ef7bc750f6b09bf67b33aa3e033a6f.tar.xz
Write out pgpass, also document how to secure the database for production use
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