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

19 lines
468 B
YAML
Raw Permalink Normal View History

2020-11-13 22:02:44 +01:00
- 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 }}"