Update pre.yml

This commit is contained in:
qiaofeng1227 2022-07-27 17:35:30 +08:00 committed by GitHub
parent 04f9162e4e
commit 8481dbce16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,12 +13,12 @@
- set_fact:
rabbitmq_version_meta:
"0": "latest"
"1": "3.10"
"2": "3.9"
"3": "3.8"
"4": "3.7"
"5": "3.6"
"0": ""
"1": "3.10-"
"2": "3.9-"
"3": "3.8-"
"4": "3.7-"
"5": "3.6-"
- set_fact:
rabbitmq_version: "{{rabbitmq_version_meta[rabbitmq_version_options.user_input]}}"
@ -28,4 +28,4 @@
- name: Config .env for start containers
shell: |
sed -i 's/APP_VERSION=.*/APP_VERSION={{rabbitmq_version}}/g' {{installpath}}/{{appname}}/.env
sed -i 's/APP_VERSION=.*/APP_VERSION={{rabbitmq_version}}management/g' {{installpath}}/{{appname}}/.env