Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
infra
ansible-shared
webservices
Commits
b493af54
Commit
b493af54
authored
Oct 21, 2021
by
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
etherpad/tasks/main.yml
View file @
b493af54
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment