Allow username of additional Postgres databases to be different
We'll most likely use one that matches the database name, but it's better to have it configurable.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
|
||||
- name: Create additional users in postgres
|
||||
postgresql_user:
|
||||
name: "{{ item.name }}"
|
||||
name: "{{ item.username }}"
|
||||
password: "{{ item.pass }}"
|
||||
login_host: "{{ matrix_postgres_container_ip.stdout }}"
|
||||
login_port: 5432
|
||||
@ -18,7 +18,7 @@
|
||||
- name: Create additional users in postgres
|
||||
postgresql_db:
|
||||
name: "{{ item.name }}"
|
||||
owner: "{{ item.name }}"
|
||||
owner: "{{ item.username }}"
|
||||
lc_ctype: 'C'
|
||||
lc_collate: 'C'
|
||||
login_host: "{{ matrix_postgres_container_ip.stdout }}"
|
||||
|
Reference in New Issue
Block a user