From 5725d926f9ef7bc750f6b09bf67b33aa3e033a6f Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 3 Oct 2019 18:52:48 -0400 Subject: Write out pgpass, also document how to secure the database for production use --- tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tasks/main.yml') 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 -- cgit v1.2.3