Update pre.yml

This commit is contained in:
qiaofeng1227 2022-07-25 15:12:44 +08:00 committed by GitHub
parent 005c7006a6
commit 9181a5ce57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1 +1,24 @@
- 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