mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 08:53:07 -06:00
DCD-224: Grant the created DB roles to postgres root user for DB creation.
This commit is contained in:
@@ -9,7 +9,16 @@
|
|||||||
name: "{{ atl_jdbc_user }}"
|
name: "{{ atl_jdbc_user }}"
|
||||||
password: "{{ atl_jdbc_password }}"
|
password: "{{ atl_jdbc_password }}"
|
||||||
expires: 'infinity'
|
expires: 'infinity'
|
||||||
tags: db_interaction
|
|
||||||
|
- name: Update root privs for new user
|
||||||
|
postgresql_privs:
|
||||||
|
login_host: "{{ atl_db_host }}"
|
||||||
|
login_user: "{{ atl_db_root_user }}"
|
||||||
|
login_password: "{{ atl_db_root_password }}"
|
||||||
|
database: postgres
|
||||||
|
roles: "{{ atl_db_root_user }}"
|
||||||
|
objs: "{{ atl_jdbc_user }}"
|
||||||
|
type: group
|
||||||
|
|
||||||
- name: Create application database
|
- name: Create application database
|
||||||
postgresql_db:
|
postgresql_db:
|
||||||
@@ -23,4 +32,3 @@
|
|||||||
lc_collate: "{{ atl_jdbc_collation }}"
|
lc_collate: "{{ atl_jdbc_collation }}"
|
||||||
lc_ctype: "{{ atl_jdbc_ctype }}"
|
lc_ctype: "{{ atl_jdbc_ctype }}"
|
||||||
template: "{{ atl_jdbc_template }}"
|
template: "{{ atl_jdbc_template }}"
|
||||||
tags: db_interaction
|
|
||||||
|
|||||||
Reference in New Issue
Block a user