Skip to content

Commit 0863cad

Browse files
committed
Merge pull request #15 from michaelcontento/enable-conf.d
Enable include_dir="conf.d"
2 parents 29a95cb + 83a7156 commit 0863cad

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

tasks/configure.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
group: "{{postgresql_admin_user}}"
3838
mode: 0640
3939
register: postgresql_configuration_pt2
40+
41+
- name: PostgreSQL | Create folder for additional configuration files
42+
file:
43+
name: "{{postgresql_conf_directory}}/conf.d"
44+
state: directory
45+
owner: "{{postgresql_admin_user}}"
46+
group: "{{postgresql_admin_user}}"
47+
mode: 0755
4048

4149
- name: PostgreSQL | Restart PostgreSQL
4250
service:

templates/postgresql.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ restart_after_crash = {{'on' if postgresql_restart_after_crash else 'off'}}
433433
# These options allow settings to be loaded from files other than the
434434
# default postgresql.conf.
435435

436-
#include_dir = 'conf.d' # include files ending in '.conf' from
436+
include_dir = 'conf.d' # include files ending in '.conf' from
437437
# directory 'conf.d'
438438
#include_if_exists = 'exists.conf' # include file only if it exists
439439
#include = 'special.conf' # include file

0 commit comments

Comments
 (0)