Add selinux for k3s

This commit is contained in:
Adrien Reslinger 2021-01-31 14:19:00 +01:00
parent d43e295f30
commit 6fa60172df
Signed by: adrien
GPG key ID: DA7B27055C66D6DE
2 changed files with 19 additions and 3 deletions

View file

@ -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