Skip to content

Commit

Permalink
Merge pull request #15 from michaelcontento/enable-conf.d
Browse files Browse the repository at this point in the history
Enable include_dir="conf.d"
  • Loading branch information
pjan committed May 25, 2014
2 parents 29a95cb + 83a7156 commit 0863cad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,14 @@
group: "{{postgresql_admin_user}}"
mode: 0640
register: postgresql_configuration_pt2

- name: PostgreSQL | Create folder for additional configuration files
file:
name: "{{postgresql_conf_directory}}/conf.d"
state: directory
owner: "{{postgresql_admin_user}}"
group: "{{postgresql_admin_user}}"
mode: 0755

- name: PostgreSQL | Restart PostgreSQL
service:
Expand Down
2 changes: 1 addition & 1 deletion templates/postgresql.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ restart_after_crash = {{'on' if postgresql_restart_after_crash else 'off'}}
# These options allow settings to be loaded from files other than the
# default postgresql.conf.

#include_dir = 'conf.d' # include files ending in '.conf' from
include_dir = 'conf.d' # include files ending in '.conf' from
# directory 'conf.d'
#include_if_exists = 'exists.conf' # include file only if it exists
#include = 'special.conf' # include file
Expand Down

0 comments on commit 0863cad

Please sign in to comment.