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
5e3f03c5
Unverified
Commit
5e3f03c5
authored
Jul 04, 2021
by
Robin Sonnabend
Browse files
Create postgres database for etherpad
parent
7f7ce949
Pipeline
#3170
passed with stage
in 2 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
etherpad/tasks/main.yml
View file @
5e3f03c5
...
...
@@ -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
Supports
Markdown
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