change execdb to delegate like resultsdb-be
This commit is contained in:
parent
582b547a5c
commit
6208523c9a
1 changed files with 2 additions and 2 deletions
|
@ -17,14 +17,14 @@
|
|||
when: ansible_distribution_major_version|int > 21 and ansible_cmdline.ostree is not defined
|
||||
|
||||
- name: ensure database is created
|
||||
delegate_to: "{{ execdb_db_host }}"
|
||||
delegate_to: "{{ execdb_db_host_machine }}"
|
||||
sudo_user: postgres
|
||||
sudo: true
|
||||
action: postgresql_db db={{ execdb_db_name }}
|
||||
|
||||
- name: ensure dev execdb db user has access to dev database
|
||||
when: deployment_type == 'dev'
|
||||
delegate_to: "{{ execdb_db_host }}"
|
||||
delegate_to: "{{ execdb_db_host_machine }}"
|
||||
sudo_user: postgres
|
||||
sudo: true
|
||||
action: postgresql_user db={{ execdb_db_name }} user={{ execdb_db_user }} password={{ execdb_db_password }} role_attr_flags=NOSUPERUSER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue