- hosts: image tasks: - name: "install tools for Rust" apt: name: - build-essential - cmake - curl - name: "install rustup" shell: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh sh /tmp/rustup.sh -y --no-modify-path vars: ansible_python_interpreter: /usr/bin/python3