mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-25 02:38:42 +08:00
24 lines
635 B
YAML
24 lines
635 B
YAML
- pause:
|
|
prompt: |
|
|
Choice Seafile version:
|
|
0: Seafile Community
|
|
1: Seafile Enterprise
|
|
private: no
|
|
Default:0
|
|
register: seafile_version_options
|
|
|
|
- set_fact:
|
|
seafile_version_meta:
|
|
"0": "seafileltd/seafile-mc"
|
|
"1": "docker.seafile.top/seafileltd/seafile-pro-mc"
|
|
|
|
- set_fact:
|
|
seafile_version: "{{seafile_version_meta[seafile_version_options.user_input]}}"
|
|
|
|
- debug:
|
|
msg: "seafile_version is {{seafile_version}}"
|
|
|
|
- name: Config .env for start containers
|
|
shell: |
|
|
sed -i 's/APP_REPO=.*/APP_REPO={{seafile_version}}/g' {{installpath}}/{{appname}}/.env
|