mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 02:38:42 +08:00
26 lines
571 B
YAML
26 lines
571 B
YAML
- pause:
|
|
prompt: |
|
|
Choice Redis version:
|
|
0: Redis7
|
|
1: Redis6
|
|
2: Redis5
|
|
private: no
|
|
Default:0
|
|
register: redis_version_options
|
|
|
|
- set_fact:
|
|
redis_version_meta:
|
|
"0": "7"
|
|
"1": "6"
|
|
"2": "5"
|
|
|
|
- set_fact:
|
|
redis_version: "{{redis_version_meta[redis_version_options.user_input]}}"
|
|
|
|
- debug:
|
|
msg: "redis_version is {{redis_version}}"
|
|
|
|
- name: Config .env for start containers
|
|
shell: |
|
|
sed -i 's/APP_VERSION=.*/APP_VERSION=v{{redis_version}}/g' {{installpath}}/{{appname}}/.env
|