From 25b7c60a3ec32bc14da9c94e593026e9bd3ba177 Mon Sep 17 00:00:00 2001 From: Ben Passmore Date: Thu, 6 Nov 2014 17:52:32 +1000 Subject: [PATCH 1/2] Corrected database tasks when custom ports are defined --- tasks/databases.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/databases.yml b/tasks/databases.yml index 4a10df36..bdcf0c97 100644 --- a/tasks/databases.yml +++ b/tasks/databases.yml @@ -11,6 +11,7 @@ encoding: "{{postgresql_encoding}}" lc_collate: "{{postgresql_locale}}" lc_ctype: "{{postgresql_locale}}" + port: "{{postgresql_port}}" template: "template0" state: present with_items: postgresql_databases From 85b6f3d5d5e6914ebeef7df70cc50cfedd8ef514 Mon Sep 17 00:00:00 2001 From: Ben Passmore Date: Thu, 6 Nov 2014 18:04:07 +1000 Subject: [PATCH 2/2] Corrected user tasks when custom ports are defined --- tasks/users.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasks/users.yml b/tasks/users.yml index 9323d86a..d2fcfd33 100644 --- a/tasks/users.yml +++ b/tasks/users.yml @@ -9,6 +9,7 @@ postgresql_user: name: "{{item.name}}" password: "{{item.pass | default('pass')}}" + port: "{{postgresql_port}}" state: present login_host: "{{item.host | default('localhost')}}" with_items: postgresql_users @@ -18,6 +19,7 @@ postgresql_user: name: "{{item.name}}" db: "{{item.db}}" + port: "{{postgresql_port}}" priv: "{{item.priv | default('ALL')}}" state: present login_host: "{{item.host | default('localhost')}}"