File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,9 @@ moodle_db_install: true
7878# Which database service to use: PostgreSQL (pgsql) or MariaDB (maridb).
7979moodle_db_type : pgsql
8080
81+ # The name of the database.
82+ moodle_db_name : " "
83+
8184# If a database service has to be installed, this user will be created with
8285# administrative provileges on the database. If the database service is already
8386# running on a different server, the user must supply the username and
Original file line number Diff line number Diff line change @@ -124,16 +124,11 @@ moodle_web_protected_files:
124124 - README\.md
125125 - upgrade\.txt
126126
127- # ------ Set-Up of Database {{{1
128-
129- # The name of the database.
130- moodle_db_name : " {{ 'moodle' + moodle_instance }}"
131-
132127# ------ Install & Server-side Configuration {{{1
133128
134129# Database connection details.
135130moodle_cfg_dbtype : " {{ moodle_db_type }}"
136- moodle_cfg_dbname : " {{ moodle_db_name }}"
131+ moodle_cfg_dbname : " {{ moodle_db_name | default('moodle-' + moodle_instance, true) }}"
137132moodle_cfg_dbuser : " {{ moodle_db_username }}"
138133moodle_cfg_dbpass : " {{ moodle_db_password }}"
139134
You can’t perform that action at this time.
0 commit comments