Update pre.yml

This commit is contained in:
qiaofeng1227 2022-07-25 10:28:34 +08:00 committed by GitHub
parent 2a68f51e92
commit ede2177eb3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1 +1,25 @@
- pause:
prompt: |
Choice ActiveMQ version:
0: ActiveMQ CLASSIC
1: ActiveMQ ARTEMIS
private: no
Default:0
register: activemq_version_options
- set_fact:
activemq_version_meta:
"0": "activemq-classic"
"1": "activemq-artemis"
- set_fact:
activemq_version: "{{activemq_version_meta[activemq_version_options.user_input]}}"
- debug:
msg: "activemq_version is {{activemq_version}}"
- name: Config .env and docker-compose for start containers
shell: |
yq eval 'del(.services.{{activemq_version}}.profiles)' docker-compose.yml > tmp.yml
cat tmp.yml > docker-compose.yml
rm -f tmp.yml