role-rust/tasks/update_toolchain.yml
2023-09-08 18:45:59 +02:00

10 lines
301 B
YAML

- name: "get toolchain version"
shell: rustup check
register: old_toolchain_version
changed_when: false
- name: "update toolchain and rustup"
register: update_toolchain
shell: "rustup update {{ rust_toolchain_version }}"
changed_when: "'downloading component' in update_toolchain.stdout"