# yamllint disable rule:line-length
when: result.stdout == ""
-- debug: var=ansible_host
+- debug:
+ msg: K3 Installation started on {{ ansible_facts['distribution'] }} MEP Node
- name: "INSTALL: Disabling firewall for successfull k3s installation on CentOs"
shell:
when: ansible_facts['distribution'] == "CentOS" and result is failed
ignore_errors: true
-- name: "INSTALL: install k3s-selinux-0.1.1-rc1.el7.noarch.rpm"
- 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
-
- name: "INSTALL: get interface name"
shell:
cmd: ip a |grep {{ ansible_host }} |awk '{print $NF}'