- name: Download the installation script ansible.builtin.get_url: url: https://get.k3s.io dest: /tmp register: install_script - name: Run installation script become: true environment: INSTALL_K3S_EXEC: server ansible.builtin.command: cmd: sh {{ install_script.dest }}