diff --git a/tasks/databases.yml b/tasks/databases.yml index 76df79a6..176a8888 100644 --- a/tasks/databases.yml +++ b/tasks/databases.yml @@ -12,6 +12,7 @@ encoding: "{{postgresql_encoding}}" lc_collate: "{{postgresql_locale}}" lc_ctype: "{{postgresql_locale}}" + port: "{{postgresql_port}}" template: "template0" state: present login_user: "{{postgresql_admin_user}}" diff --git a/tasks/users.yml b/tasks/users.yml index 33696b0d..ed5ee83b 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_user: "{{postgresql_admin_user}}" sudo: yes @@ -20,6 +21,7 @@ postgresql_user: name: "{{item.name}}" db: "{{item.db}}" + port: "{{postgresql_port}}" priv: "{{item.priv | default('ALL')}}" state: present login_user: "{{postgresql_admin_user}}"