24 lines
582 B
YAML
24 lines
582 B
YAML
|
---
|
||
|
- name: Allow conf.d/*.conf files to be included in PostgreSQL configuration
|
||
|
lineinfile:
|
||
|
name: /etc/postgresql/9.4/main/postgresql.conf
|
||
|
line: include_dir = 'conf.d'
|
||
|
notify: restart postgresql
|
||
|
|
||
|
- name: Create conf.d directory
|
||
|
file:
|
||
|
name: /etc/postgresql/9.4/main/conf.d/
|
||
|
state: directory
|
||
|
owner: postgres
|
||
|
group: postgres
|
||
|
mode: 0755
|
||
|
|
||
|
- name: Copy PostgreSQL config file
|
||
|
template:
|
||
|
src: postgresql.conf
|
||
|
dest: /etc/postgresql/9.4/main/conf.d/evolinux.conf
|
||
|
owner: postgres
|
||
|
group: postgres
|
||
|
mode: 0644
|
||
|
notify: restart postgresql
|