mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 07:30:24 +00:00
Update main.yml
This commit is contained in:
parent
102b2aaa53
commit
b4aa161bef
1 changed files with 1 additions and 23 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue