role-rust/tasks/update_toolchain.yml

10 lines
301 B
YAML
Raw Normal View History

2023-09-08 16:45:59 +00:00
- 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"