Add .pgpass file to avoid entering db password
Cette révision appartient à :
Parent
1abb2fa7fe
révision
aa91d89bce
2 fichiers modifiés avec 7 ajouts et 0 suppressions
|
@ -56,6 +56,12 @@
|
||||||
become: true
|
become: true
|
||||||
become_user: postgres
|
become_user: postgres
|
||||||
|
|
||||||
|
- name: Add .pgpass
|
||||||
|
template:
|
||||||
|
src: pgpass.j2
|
||||||
|
dest: ~/.pgpass
|
||||||
|
mode: 0600
|
||||||
|
|
||||||
- name: Reload postgres
|
- name: Reload postgres
|
||||||
systemd:
|
systemd:
|
||||||
name: postgresql
|
name: postgresql
|
||||||
|
|
1
deploy/ansible/roles/postgresql/templates/pgpass.j2
Fichier normal
1
deploy/ansible/roles/postgresql/templates/pgpass.j2
Fichier normal
|
@ -0,0 +1 @@
|
||||||
|
localhost:5432:{{ nyaapantsu_dbname }}:{{ nyaapantsu_user }}:{{ nyaapantsu_password }}
|
Référencer dans un nouveau ticket