|
|
|
|
@ -78,7 +78,7 @@
|
|
|
|
|
- item.stdout == '0'
|
|
|
|
|
- server_type == 'master'
|
|
|
|
|
|
|
|
|
|
- name: "Grant CREATE privilege on public schema for if necessary"
|
|
|
|
|
- name: "Grant CREATE privilege on public schema if necessary"
|
|
|
|
|
community.postgresql.postgresql_privs:
|
|
|
|
|
role: "{{ item.item.name }}"
|
|
|
|
|
type: schema
|
|
|
|
|
@ -135,7 +135,7 @@
|
|
|
|
|
- name: "Create PostgreSQL readonly group"
|
|
|
|
|
community.postgresql.postgresql_user:
|
|
|
|
|
name: "postgres_readonly"
|
|
|
|
|
role_attr_flags: NOLOGIN,NOSUPERUSER,NOCREATEDB,NOCREATEROLE,NOREPLICATION
|
|
|
|
|
role_attr_flags: NOLOGIN,NOSUPERUSER,NOCREATEDB,NOCREATEROLE,NOREPLICATION,INHERIT
|
|
|
|
|
login_user: "{{ postgres_admin_user }}"
|
|
|
|
|
state: present
|
|
|
|
|
become: true
|
|
|
|
|
@ -202,7 +202,7 @@
|
|
|
|
|
community.postgresql.postgresql_user:
|
|
|
|
|
name: "{{ pgadmin4_oidc_dev_username }}"
|
|
|
|
|
password: "{{ pgadmin4_oidc_dev_password }}"
|
|
|
|
|
role_attr_flags: LOGIN,NOSUPERUSER,NOCREATEDB,NOCREATEROLE,NOREPLICATION
|
|
|
|
|
role_attr_flags: LOGIN,NOSUPERUSER,NOCREATEDB,NOCREATEROLE,NOREPLICATION,INHERIT
|
|
|
|
|
login_user: "{{ postgres_admin_user }}"
|
|
|
|
|
state: present
|
|
|
|
|
become: true
|
|
|
|
|
@ -213,7 +213,7 @@
|
|
|
|
|
- name: "Add {{ pgadmin4_oidc_dev_username }} to group 'postgres_readonly'"
|
|
|
|
|
community.postgresql.postgresql_user:
|
|
|
|
|
name: "{{ pgadmin4_oidc_dev_username }}"
|
|
|
|
|
role_attr_flags: "NOSUPERUSER,NOCREATEDB,NOCREATEROLE,NOREPLICATION"
|
|
|
|
|
role_attr_flags: NOSUPERUSER,NOCREATEDB,NOCREATEROLE,NOREPLICATION,INHERIT
|
|
|
|
|
groups: "postgres_readonly"
|
|
|
|
|
login_user: "{{ postgres_admin_user }}"
|
|
|
|
|
state: present
|
|
|
|
|
|