Move postgresql stuff around.
This commit is contained in:
parent
51746b66d0
commit
3dae75234b
4 changed files with 21 additions and 8 deletions
|
@ -19,6 +19,13 @@
|
|||
tags:
|
||||
- service
|
||||
|
||||
- name: setup postgresql koji config file
|
||||
template: src=pg_hba.conf.j2 dest=/var/lib/pgsql/data/pg_hba.conf mode=600 backup=yes
|
||||
notify:
|
||||
- restart postgresql
|
||||
tags:
|
||||
- config
|
||||
|
||||
- name: Set postgresql-server to run on boot
|
||||
service: name=postgresql enabled=yes
|
||||
ignore_errors: true
|
||||
|
|
4
roles/postgresql_server/templates/pg_hba.conf.j2
Normal file
4
roles/postgresql_server/templates/pg_hba.conf.j2
Normal file
|
@ -0,0 +1,4 @@
|
|||
local all all ident
|
||||
host koji koji {{ ansible_eth0["ipv4"]["address"] }} 255.255.255.255 md5
|
||||
host all all 0.0.0.0 0.0.0.0 md5
|
||||
host all all ::1/128 md5
|
Loading…
Add table
Add a link
Reference in a new issue