ansible-roles/postgresql/tasks/config.yml
Eric Morino e20d95786a
All checks were successful
continuous-integration/drone/push Build is passing
Change config file name conf.d/evolinux.conf by conf.d/zz-evolinux.conf
2019-11-18 09:31:24 +01:00

26 lines
679 B
YAML

---
- name: Allow conf.d/*.conf files to be included in PostgreSQL configuration
lineinfile:
name: "/etc/postgresql/{{postgresql_version}}/main/postgresql.conf"
line: include_dir = 'conf.d'
notify: restart postgresql
- name: Create conf.d directory
file:
name: "/etc/postgresql/{{postgresql_version}}/main/conf.d/"
state: directory
owner: postgres
group: postgres
mode: "0755"
- name: Copy PostgreSQL config file
template:
src: postgresql.conf.j2
dest: "/etc/postgresql/{{postgresql_version}}/main/conf.d/zz-evolinux.conf"
owner: postgres
group: postgres
mode: "0644"
notify: restart postgresql
- meta: flush_handlers