ansible-role-openstreamingp.../tasks/db_postgresql.yml

19 lines
468 B
YAML

- name: DB - create user
postgresql_user:
login_host: "{{ osp_db_host }}"
name: "{{ osp_db_user }}"
- name: DB - create database
postgresql_db:
login_host: "{{ osp_db_host }}"
name: "{{ osp_db_name }}"
owner: "{{ osp_db_user }}"
encoding: UTF-8
lc_collate: en_US.UTF-8
lc_ctype: en_US.UTF-8
- name: Set DB location
when: osp_db_location != "///db/database.db"
set_fact:
osp_db_location: "{{ osp_db_location_postgresql }}"