Commit b493af54 authored by Lars Beckers's avatar Lars Beckers
Browse files

Merge branch 'etherpad-postgres' into 'master'

Create postgres database for etherpad

See merge request !27
parents 8b975818 5e3f03c5
Pipeline #3431 passed with stage
in 1 minute and 29 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
......
Markdown is supported
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