Update main.yml

This commit is contained in:
qiaofeng1227 2022-07-19 08:47:24 +08:00 committed by GitHub
parent 102b2aaa53
commit b4aa161bef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,23 +1 @@
- pause:
prompt: |
Choice Portainer version:
0: PortainerCE
1: PortainerEE
private: no
Default:0
register: version_options
- set_fact:
portainer_version_meta:
"0": "ce"
"1": "ee"
- set_fact:
portainer_version: "{{portainer_version_meta[version_options.user_input]}}"
- debug:
msg: "portainer_version is {{portainer_version}}"
- name: Config .env for start containers
shell: |
sed -i 's/APP_DISTRIBUTION=.*/APP_DISTRIBUTION={{portainer_version}}/g' {{installpath}}/{{appname}}/.env
portainer_port: "9091"