File tree Expand file tree Collapse file tree 2 files changed +5
-27
lines changed Expand file tree Collapse file tree 2 files changed +5
-27
lines changed Original file line number Diff line number Diff line change 4
4
ansible.builtin.get_url :
5
5
url : https://get.k3s.io/
6
6
timeout : 120
7
- dest : /usr/local/ bin/k3s-install.sh
7
+ dest : /usr/bin/k3s-install.sh
8
8
owner : root
9
9
group : root
10
10
mode : " 0755"
11
11
12
12
- name : Install k3s
13
13
ansible.builtin.shell :
14
- cmd : /usr/local/ bin/k3s-install.sh
14
+ cmd : /usr/bin/k3s-install.sh
15
15
environment :
16
16
INSTALL_K3S_VERSION : " v1.31.0+k3s1"
17
17
INSTALL_K3S_EXEC : " {{ item }}"
18
18
INSTALL_K3S_SKIP_START : " true"
19
19
INSTALL_K3S_SKIP_ENABLE : " true"
20
+ INSTALL_K3S_BIN_DIR : " /usr/bin"
20
21
changed_when : true
21
22
with_items :
22
23
- server
23
24
- agent
24
25
25
- - name : Creating directory on root path
26
- ansible.builtin.file :
27
- path : /root/bin
28
- state : directory
29
- owner : root
30
-
31
- - name : Adding symlinks to k3s binaries for root
32
- ansible.builtin.file :
33
- src : /usr/local/bin/k3s
34
- dest : " /root/bin/{{ item }}"
35
- state : link
36
- owner : root
37
- with_items :
38
- - k3s
39
- - kubectl
40
-
41
26
- name : Installing helm
42
27
unarchive :
43
28
src : https://get.helm.sh/helm-v3.11.0-linux-amd64.tar.gz
44
- dest : /usr/local/ bin
29
+ dest : /usr/bin
45
30
extra_opts : " --strip-components=1"
46
31
owner : root
47
32
group : root
48
33
mode : 0755
49
34
remote_src : true
50
35
51
- - name : Add helm symlink in root path
52
- ansible.builtin.file :
53
- src : /usr/local/bin/helm
54
- dest : " /root/bin/helm"
55
- state : link
56
- owner : root
57
-
58
36
- name : k9s install
59
37
ansible.builtin.include_role :
60
38
name : k9s
Original file line number Diff line number Diff line change 18
18
- name : Add k9s to root path
19
19
ansible.builtin.copy :
20
20
src : /root/k9s-temp/k9s
21
- dest : /root /bin/k9s
21
+ dest : /usr /bin/k9s
22
22
mode : u+rwx
23
23
remote_src : yes
24
24
You can’t perform that action at this time.
0 commit comments