Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
9c23860c
Commit
9c23860c
authored
Feb 17, 2020
by
Julien DOCHE
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
contrib/ansible: Fix home is not necessarily in /home
Signed-off-by:
Julien DOCHE
<
julien.doche@gmail.com
>
parent
95760fff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.yml
contrib/ansible/roles/k3s/master/tasks/main.yml
+3
-3
No files found.
contrib/ansible/roles/k3s/master/tasks/main.yml
View file @
9c23860c
...
@@ -46,20 +46,20 @@
...
@@ -46,20 +46,20 @@
-
name
:
Create directory .kube
-
name
:
Create directory .kube
file
:
file
:
path
:
/home/
{{ ansible_user }}/.kube
path
:
~
{{ ansible_user }}/.kube
state
:
directory
state
:
directory
owner
:
"
{{
ansible_user
}}"
owner
:
"
{{
ansible_user
}}"
-
name
:
Copy config file to user home directory
-
name
:
Copy config file to user home directory
copy
:
copy
:
src
:
/etc/rancher/k3s/k3s.yaml
src
:
/etc/rancher/k3s/k3s.yaml
dest
:
/home/
{{ ansible_user }}/.kube/config
dest
:
~
{{ ansible_user }}/.kube/config
remote_src
:
yes
remote_src
:
yes
owner
:
"
{{
ansible_user
}}"
owner
:
"
{{
ansible_user
}}"
-
name
:
Replace https://localhost:6443 by https://master-pi:6443
-
name
:
Replace https://localhost:6443 by https://master-pi:6443
replace
:
replace
:
path
:
/home/
{{ ansible_user }}/.kube/config
path
:
~
{{ ansible_user }}/.kube/config
regexp
:
'
https://localhost:6443'
regexp
:
'
https://localhost:6443'
replace
:
'
https://{{master_ip}}:6443'
replace
:
'
https://{{master_ip}}:6443'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment