Commit 0259ee08 authored by Stephen Seltzer's avatar Stephen Seltzer

Adds postgress password file.

parent feff4051
......@@ -8,4 +8,15 @@
- name: create the postgresql user
postgresql_user: name={{ db_user }} password={{ db_user_pw }}
sudo_user: postgres
\ No newline at end of file
sudo_user: postgres
- name: create password file on vagrant box
lineinfile:
dest: ~/.pgpass
state: present
create: yes
line: "{{ item }}"
mode: 0600
with_items:
- "#hostname:port:database:username:password"
- "localhost:5432:{{ db_name }}:{{ db_user }}:{{ db_user_pw }}"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment