You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
932 B
29 lines
932 B
--- |
|
|
|
- name: greenplum master | Create Greenplum users |
|
community.general.postgresql_user: |
|
db: template1 |
|
login_host: "127.0.0.1" |
|
login_user: "{{ greenplum_user }}" |
|
name: "{{ item.name }}" |
|
password: "{{ item.password }}" |
|
groups: "{{ item.groups | default(omit) }}" |
|
role_attr_flags: "{{ 'SUPERUSER' if item.superuser else '' }}" |
|
state: present |
|
loop: "{{ greenplum_users }}" |
|
loop_control: |
|
label: "{{ item.name }}" |
|
notify: update greenplum configuration |
|
|
|
- name: greenplum master | Adjust pg_hba.conf |
|
community.general.postgresql_pg_hba: |
|
dest: "{{ greenplum_master_directory }}/{{ greenplum_seg_prefix }}-1/pg_hba.conf" |
|
contype: "{{ item.contype }}" |
|
source: "{{ item.source }}" |
|
databases: "{{ item.databases }}" |
|
users: "{{ item.users }}" |
|
method: "{{ item.method }}" |
|
state: present |
|
loop: "{{ greenplum_trusted_hosts }}" |
|
notify: update greenplum configuration |
|
|
|
|