Add rust toolchain
This commit is contained in:
2
main.yml
2
main.yml
@@ -18,6 +18,8 @@
|
|||||||
- role: roles/offlineimap
|
- role: roles/offlineimap
|
||||||
tags: [offlineimap, services, never]
|
tags: [offlineimap, services, never]
|
||||||
when: ansible_os_family == 'Debian'
|
when: ansible_os_family == 'Debian'
|
||||||
|
- role: roles/rust
|
||||||
|
tags: [packages]
|
||||||
tasks:
|
tasks:
|
||||||
- name: Dump hostvars
|
- name: Dump hostvars
|
||||||
tags: [never, dump]
|
tags: [never, dump]
|
||||||
|
|||||||
9
roles/rust/tasks/main.yml
Normal file
9
roles/rust/tasks/main.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
- name: Check if rustup is installed already
|
||||||
|
stat:
|
||||||
|
path: "{{ lookup('env', 'HOME') }}/.local/share/cargo/bin/rustup"
|
||||||
|
register: rustup_status
|
||||||
|
|
||||||
|
- name: Ensure rustup
|
||||||
|
# Note, that the path is not modified, since my dotfiles setup did that already!
|
||||||
|
shell: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path
|
||||||
|
when: not rustup_status.stat.exists
|
||||||
Reference in New Issue
Block a user