Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
ksy-project-docking
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 80e01cdd
authored
Jan 26, 2021
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update main.yml
1 parent
67a5a70f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
kpl_replace_cfg/roles/replace-configmap/tasks/main.yml
kpl_replace_cfg/roles/replace-configmap/tasks/main.yml
View file @
80e01cd
-
name
:
在tmp目录创建渲染目标目录
file
:
path=/tmp/configmap-kpl/{{ item }} state=directory
with_items
:
-
autodl-core
-
autodl
-
kpl
-
name
:
渲染分发autodl-core的configmap配置文件
...
...
@@ -11,10 +9,6 @@
with_fileglob
:
-
"
{{
TMP_RESOURCE
}}/configmap-kpl/autodl-core/*.j2"
-
name
:
渲染分发autodl的configmap配置文件
template
:
src={{ item }} dest=/tmp/configmap-kpl/autodl/{{ item | basename | regex_replace('.j2','') }}
with_fileglob
:
-
"
{{
TMP_RESOURCE
}}/configmap-kpl/autodl/*.j2"
-
name
:
渲染分发kpl的configmap配置文件
template
:
src={{ item }} dest=/tmp/configmap-kpl/kpl/{{ item | basename | regex_replace('.j2','') }}
...
...
@@ -23,6 +17,13 @@
-
name
:
执行kubectl apply创建configmap配置文件
shell
:
kubectl apply -f {{ item }}
register
:
configmap_result
with_items
:
-
/tmp/configmap-kpl/autodl-core
-
/tmp/configmap-kpl/kpl
-
name
:
显示apply configmap后输出信息
debug
:
msg={{ item.stdout_lines }}
with_items
:
-
"
{{
configmap_result.results
}}"
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment