Update pre.yml

This commit is contained in:
qiaofeng1227 2022-07-22 11:56:13 +08:00 committed by GitHub
parent 9d76521ca4
commit 936ce03086
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1 +1,23 @@
- pause:
prompt: |
Choice Gitlab version:
0: Gitlabce
1: Gitlabee
private: no
Default:0
register: gitlab_version_options
- set_fact:
gitlab_version_meta:
"0": "ce"
"1": "ee"
- set_fact:
gitlab_version: "{{gitlab_version_meta[gitlab_version_options.user_input]}}"
- debug:
msg: "gitlab_version is {{gitlab_version}}"
- name: Config .env for start containers
shell: |
sed -i 's/APP_VERSION=.*/APP_VERSION=v{{gitlab_version}}/g' {{installpath}}/{{appname}}/.env