websoft9/apps/roles/gitlab/tasks/pre.yml

24 lines
552 B
YAML
Raw Normal View History

2022-07-22 11:56:13 +08:00
- pause:
prompt: |
Choice Gitlab version:
0: Gitlabce
1: Gitlabee
private: no
Default:0
register: gitlab_version_options
2022-07-15 08:56:27 +08:00
2022-07-22 11:56:13 +08:00
- 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: |
2022-07-22 11:57:30 +08:00
sed -i 's/APP_EDITION=.*/APP_EDITION={{gitlab_version}}/g' {{installpath}}/{{appname}}/.env