shell:
cmd: yum install -y container-selinux selinux-policy-base
when: ansible_facts['distribution'] == "CentOS" and result is failed
ignore_errors: true
shell:
cmd: yum install -y container-selinux selinux-policy-base
when: ansible_facts['distribution'] == "CentOS" and result is failed
ignore_errors: true
shell:
cmd: rpm -i https://rpm.rancher.io/k3s-selinux-0.1.1-rc1.el7.noarch.rpm
when: ansible_facts['distribution'] == "CentOS" and result is failed
ignore_errors: true
shell:
cmd: rpm -i https://rpm.rancher.io/k3s-selinux-0.1.1-rc1.el7.noarch.rpm
when: ansible_facts['distribution'] == "CentOS" and result is failed
ignore_errors: true
shell:
cmd: curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--node-ip={{ ansible_host }} --node-external-ip={{ ansible_host }} --bind-address={{ ansible_host }} --flannel-iface=eth0 --docker --no-deploy=servicelb --no-deploy=traefik --write-kubeconfig-mode 644 --kube-apiserver-arg="service-node-port-range=30000-36000"" sh -
when: result is failed
# yamllint disable rule:line-length
shell:
cmd: curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="--node-ip={{ ansible_host }} --node-external-ip={{ ansible_host }} --bind-address={{ ansible_host }} --flannel-iface=eth0 --docker --no-deploy=servicelb --no-deploy=traefik --write-kubeconfig-mode 644 --kube-apiserver-arg="service-node-port-range=30000-36000"" sh -
when: result is failed
# yamllint disable rule:line-length