Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!27Create postgres database for etherpad
Pipeline #3431 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment