Unverified Commit 5e3f03c5 authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Create postgres database for etherpad

parent 7f7ce949
Pipeline #3170 passed with stage
in 2 minutes and 30 seconds
......@@ -71,6 +71,27 @@
when: item.db_type == 'mysql'
no_log: true
- name: ensure we have a postgres user for the etherpad
postgresql_user:
name: "{{item.db_user}}"
password: "{{item.db_password}}"
state: present
become: true
become_user: postgres
with_items: "{{etherpads}}"
when: item.db_type == 'postgres'
no_log: true
- name: ensure we have a postgres database for the etherpad
postgresql_db:
name: "{{item.db_name}}"
owner: "{{item.db_user}}"
state: present
become: true
become_user: postgres
with_items: "{{etherpads}}"
when: item.db_type == 'postgres'
- name: ensure we have a settings file
template:
src: settings.json.j2
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment