Fix error when port is not the default one
If we configure another port than the default one, the check of the users fails because ansible cannot connect to postgresql. We must provide conneciton configration to this task too
This commit is contained in:
parent
1932dbcae0
commit
fc7aaeab43
|
@ -3,6 +3,11 @@
|
||||||
postgresql_user:
|
postgresql_user:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
password: "{{ item.password | default(omit) }}"
|
password: "{{ item.password | default(omit) }}"
|
||||||
|
login_host: "{{ item.login_host | default('localhost') }}"
|
||||||
|
login_password: "{{ item.login_password | default(omit) }}"
|
||||||
|
login_user: "{{ item.login_user | default(postgresql_user) }}"
|
||||||
|
login_unix_socket: "{{ item.login_unix_socket | default(postgresql_unix_socket_directories[0]) }}"
|
||||||
|
port: "{{ item.port | default(omit) }}"
|
||||||
with_items: "{{ postgresql_users }}"
|
with_items: "{{ postgresql_users }}"
|
||||||
no_log: "{{ postgres_users_no_log }}"
|
no_log: "{{ postgres_users_no_log }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
Loading…
Reference in New Issue