- name: Download K3s Installer get_url: url: https://get.k3s.io/ dest: /tmp/install_k3s.sh mode: '0444' - name: Create Rancher K3s Directory file: path: /etc/rancher/k3s state: directory - name: Copy config.yaml template: src: config.yaml.j2 dest: /etc/rancher/k3s/config.yaml - name: Install K3s command: sh /tmp/install_k3s.sh - name: Copying Kubernetes Config from Remote Host fetch: src: /etc/rancher/k3s/k3s.yaml dest: k3s.yaml flat: yes