mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 02:38:42 +08:00
36 lines
788 B
YAML
36 lines
788 B
YAML
- pause:
|
|
prompt: |
|
|
Choice MariaDB version:
|
|
0: MariaDB10.8
|
|
1: MariaDB10.7
|
|
2: MariaDB10.6
|
|
3: MariaDB10.5
|
|
4: MariaDB10.4
|
|
5: MariaDB10.3
|
|
6: MariaDB10.2
|
|
7: MariaDB10.1
|
|
private: no
|
|
Default:0
|
|
register: mariadb_version_options
|
|
|
|
- set_fact:
|
|
mariadb_version_meta:
|
|
"0": "10.8"
|
|
"1": "10.7"
|
|
"2": "10.6"
|
|
"3": "10.5"
|
|
"4": "10.4"
|
|
"5": "10.3"
|
|
"6": "10.2"
|
|
"7": "10.1"
|
|
|
|
- set_fact:
|
|
mariadb_version: "{{mariadb_version_meta[mariadb_version_options.user_input]}}"
|
|
|
|
- debug:
|
|
msg: "mariadb_version is {{mariadb_version}}"
|
|
|
|
- name: Config .env for start containers
|
|
shell: |
|
|
sed -i 's/APP_VERSION=.*/APP_VERSION={{mariadb_version}}/g' {{installpath}}/{{appname}}/.env
|