ansible-roles/postgresql/tasks/config.yml

24 lines
584 B
YAML
Raw Normal View History

2016-12-22 16:12:34 +01:00
---
- 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: "755"
2016-12-22 16:12:34 +01:00
- name: Copy PostgreSQL config file
template:
src: postgresql.conf
dest: /etc/postgresql/9.4/main/conf.d/evolinux.conf
owner: postgres
group: postgres
mode: "644"
2016-12-22 16:12:34 +01:00
notify: restart postgresql