2022-07-25 10:28:34 +08:00
|
|
|
- pause:
|
|
|
|
prompt: |
|
|
|
|
Choice ActiveMQ version:
|
|
|
|
0: ActiveMQ CLASSIC
|
|
|
|
1: ActiveMQ ARTEMIS
|
|
|
|
private: no
|
|
|
|
Default:0
|
|
|
|
register: activemq_version_options
|
2022-07-15 10:38:13 +08:00
|
|
|
|
2022-07-25 10:28:34 +08:00
|
|
|
- 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}}"
|
|
|
|
|
2022-07-26 10:59:04 +08:00
|
|
|
- name: Config .env and docker-compose for start containers
|
|
|
|
shell: |
|
2022-07-27 14:20:30 +08:00
|
|
|
cat {{installpath}}/{{appname}}/docker-compose.yml |yq eval 'del(.services.{{activemq_version}}.profiles)' > /tmp/tmp.yml
|
2022-07-26 11:52:02 +08:00
|
|
|
cat /tmp/tmp.yml > {{installpath}}/{{appname}}/docker-compose.yml
|
|
|
|
rm -f /tmp/tmp.yml
|