mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 02:38:42 +08:00
26 lines
640 B
YAML
26 lines
640 B
YAML
- pause:
|
|
prompt: |
|
|
Choice SQL Server version:
|
|
0: SQL Server2022
|
|
1: SQL Server2019
|
|
2: SQL Server2017
|
|
private: no
|
|
Default:0
|
|
register: sqlserver_version_options
|
|
|
|
- set_fact:
|
|
sqlserver_version_meta:
|
|
"0": "2022"
|
|
"1": "2019"
|
|
"2": "2017"
|
|
|
|
- set_fact:
|
|
sqlserver_version: "{{sqlserver_version_meta[sqlserver_version_options.user_input]}}"
|
|
|
|
- debug:
|
|
msg: "sqlserver_version is {{sqlserver_version}}"
|
|
|
|
- name: Config .env for start containers
|
|
shell: |
|
|
sed -i 's/APP_VERSION=.*/APP_VERSION={{sqlserver_version}}/g' {{installpath}}/{{appname}}/.env
|