Skip to content

Commit

Permalink
create SUPERUSER
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaassssiiee committed Oct 21, 2020
1 parent e6bc3c8 commit 1070d36
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
- name: 'initialize the postgresql user'
postgresql_user:
name: "{{ base_postgres_user }}"
role_attr_flags: 'CREATEDB,CREATEROLE'
role_attr_flags: 'SUPERUSER'
when: base_postgres_role is undefined or base_postgres_role == "master"
become: yes
become_user: postgres
Expand All @@ -215,6 +215,14 @@
tags:
- pguser

- name: Create a new database
postgresql_db:
name: "{{ base_postgres_user }}"
encoding: UTF-8
lc_collate: en_US.UTF-8
lc_ctype: en_US.UTF-8
template: template0

- name: 'initialize the replicator user'
become: yes
become_user: postgres
Expand Down

0 comments on commit 1070d36

Please sign in to comment.