From cc84fd3c4ba487d9c1f54f9fae831a3ec795c4f3 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 13 Dec 2022 16:21:47 +0800 Subject: [PATCH] Update pre.yml --- apps/roles/gitlab/tasks/pre.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/apps/roles/gitlab/tasks/pre.yml b/apps/roles/gitlab/tasks/pre.yml index 0a6cbc3d..b5f36c37 100644 --- a/apps/roles/gitlab/tasks/pre.yml +++ b/apps/roles/gitlab/tasks/pre.yml @@ -4,15 +4,17 @@ 0: Gitlabce 1: Gitlabee 2: Gitlab with Jenkins + 3: ζžη‹δΈ­ζ–‡ private: no Default:0 register: gitlab_version_options - set_fact: gitlab_version_meta: - "0": "ce" - "1": "ee" + "0": "CE" + "1": "EE" "2": "jenkins" + "3": "JH" - set_fact: gitlab_version: "{{gitlab_version_meta[gitlab_version_options.user_input]}}" @@ -22,5 +24,5 @@ - name: Config .env for start containers shell: | - sed -i 's/APP_EDITION=.*/APP_EDITION={{gitlab_version}}/g' {{installpath}}/{{appname}}/.env + sed -i 's/\$APP_CE_IMAGEURL/\$APP_{{gitlab_version}}_IMAGEURL/g' {{installpath}}/{{appname}}/.env when: gitlab_version != "jenkins"