Add selinux for k3s
This commit is contained in:
parent
d43e295f30
commit
6fa60172df
2 changed files with 19 additions and 3 deletions
|
|
@ -5,6 +5,22 @@
|
|||
# when:
|
||||
# - kubernetes_cni == "wireguard"
|
||||
|
||||
- name: Install the k3s-selinux rpm from a remote repo for yum distro
|
||||
yum:
|
||||
name: "https://github.com/k3s-io/k3s-selinux/releases/download/v0.2.stable.1/k3s-selinux-0.2-1.el7_8.noarch.rpm"
|
||||
state: present
|
||||
disable_gpg_check: yes
|
||||
when:
|
||||
- ansible_pkg_mgr == "yum"
|
||||
|
||||
- name: Install the k3s-selinux rpm from a remote repo for dnf distro
|
||||
dnf:
|
||||
name: "https://github.com/k3s-io/k3s-selinux/releases/download/v0.2.stable.1/k3s-selinux-0.2-1.el7_8.noarch.rpm"
|
||||
state: present
|
||||
disable_gpg_check: yes
|
||||
when:
|
||||
- ansible_pkg_mgr == "dnf"
|
||||
|
||||
- name: Check if /usr/local/bin/k3s already existe
|
||||
stat:
|
||||
path: /usr/local/bin/k3s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue