2016-12-22 16:12:34 +01:00
|
|
|
---
|
|
|
|
- name: Allow conf.d/*.conf files to be included in PostgreSQL configuration
|
|
|
|
lineinfile:
|
2017-03-28 15:08:12 +02:00
|
|
|
name: "/etc/postgresql/{{postgresql_version}}/main/postgresql.conf"
|
2016-12-22 16:12:34 +01:00
|
|
|
line: include_dir = 'conf.d'
|
|
|
|
notify: restart postgresql
|
|
|
|
|
|
|
|
- name: Create conf.d directory
|
|
|
|
file:
|
2017-03-28 15:08:12 +02:00
|
|
|
name: "/etc/postgresql/{{postgresql_version}}/main/conf.d/"
|
2016-12-22 16:12:34 +01:00
|
|
|
state: directory
|
|
|
|
owner: postgres
|
|
|
|
group: postgres
|
2017-03-23 16:59:43 +01:00
|
|
|
mode: "0755"
|
2016-12-22 16:12:34 +01:00
|
|
|
|
|
|
|
- name: Copy PostgreSQL config file
|
|
|
|
template:
|
2018-02-04 11:34:05 +01:00
|
|
|
src: postgresql.conf.j2
|
2017-03-28 15:08:12 +02:00
|
|
|
dest: "/etc/postgresql/{{postgresql_version}}/main/conf.d/evolinux.conf"
|
2016-12-22 16:12:34 +01:00
|
|
|
owner: postgres
|
|
|
|
group: postgres
|
2017-03-23 16:59:43 +01:00
|
|
|
mode: "0644"
|
2016-12-22 16:12:34 +01:00
|
|
|
notify: restart postgresql
|
2017-05-20 00:23:21 +02:00
|
|
|
|
|
|
|
- meta: flush_handlers
|