Fix wrong path for PostgreSQL config dir
This commit is contained in:
parent
ade957c08d
commit
b7559d59ce
|
@ -1,13 +1,13 @@
|
||||||
---
|
---
|
||||||
- name: Allow conf.d/*.conf files to be included in PostgreSQL configuration
|
- name: Allow conf.d/*.conf files to be included in PostgreSQL configuration
|
||||||
lineinfile:
|
lineinfile:
|
||||||
name: /etc/postgresql/9.4/main/postgresql.conf
|
name: "/etc/postgresql/{{postgresql_version}}/main/postgresql.conf"
|
||||||
line: include_dir = 'conf.d'
|
line: include_dir = 'conf.d'
|
||||||
notify: restart postgresql
|
notify: restart postgresql
|
||||||
|
|
||||||
- name: Create conf.d directory
|
- name: Create conf.d directory
|
||||||
file:
|
file:
|
||||||
name: /etc/postgresql/9.4/main/conf.d/
|
name: "/etc/postgresql/{{postgresql_version}}/main/conf.d/"
|
||||||
state: directory
|
state: directory
|
||||||
owner: postgres
|
owner: postgres
|
||||||
group: postgres
|
group: postgres
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
- name: Copy PostgreSQL config file
|
- name: Copy PostgreSQL config file
|
||||||
template:
|
template:
|
||||||
src: postgresql.conf
|
src: postgresql.conf
|
||||||
dest: /etc/postgresql/9.4/main/conf.d/evolinux.conf
|
dest: "/etc/postgresql/{{postgresql_version}}/main/conf.d/evolinux.conf"
|
||||||
owner: postgres
|
owner: postgres
|
||||||
group: postgres
|
group: postgres
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
|
|
Loading…
Reference in a new issue