Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kubernetes-infra-example
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cloud
kubernetes
kubernetes-infra-example
Merge requests
!6
Kubeconfig localhost
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Kubeconfig localhost
kubeconfig_localhost
into
master
Overview
0
Commits
2
Pipelines
0
Changes
3
Merged
Kristýna Rozehnalová
requested to merge
kubeconfig_localhost
into
master
11 months ago
Overview
0
Commits
2
Pipelines
0
Changes
3
Expand
Added condition to run the task only when kubeconfig_localhost == true
👍
0
👎
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3c3706cd
2 commits,
11 months ago
3 files
+
17
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
ansible/01-playbook/roles/modify/tasks/main.yml
+
5
−
0
Options
-
name
:
Include kubeconfig_localhost variable
include_vars
:
file
:
~/kubernetes-infra-example/ansible/group_vars/k8s_cluster/k8s-cluster.yml
-
name
:
Modify admin.conf
ansible.builtin.replace
:
path
:
"
../artifacts/admin.conf"
regexp
:
'
\b(?:\d{1,3}\.){3}\d{1,3}\b'
replace
:
"
{{
hostvars[groups['bastion'][0]].ansible_host
}}"
become
:
false
when
:
kubeconfig_localhost ==
true
Loading