mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 02:38:42 +08:00
28 lines
625 B
YAML
28 lines
625 B
YAML
- pause:
|
|
prompt: |
|
|
Choice MySQL version:
|
|
0: MySQL8.0
|
|
1: MySQL5.7
|
|
2: MySQL5.6
|
|
3: MySQL5.5
|
|
private: no
|
|
Default:0
|
|
register: mysql_version_options
|
|
|
|
- set_fact:
|
|
mysql_version_meta:
|
|
"0": "8.0"
|
|
"1": "5.7"
|
|
"2": "5.6"
|
|
"3": "5.5"
|
|
|
|
- set_fact:
|
|
mysql_version: "{{mysql_version_meta[mysql_version_options.user_input]}}"
|
|
|
|
- debug:
|
|
msg: "mysql_version is {{mysql_version}}"
|
|
|
|
- name: Config .env for start containers
|
|
shell: |
|
|
sed -i 's/APP_VERSION=.*/APP_VERSION={{mysql_version}}/g' {{installpath}}/{{appname}}/.env
|