Compare commits
3 Commits
d2509eb0aa
...
c21a76907c
| Author | SHA1 | Date | |
|---|---|---|---|
| c21a76907c | |||
| 36dcdad8b7 | |||
| 3215c88ee1 |
@@ -306,7 +306,7 @@ packages:
|
||||
ubuntu: []
|
||||
archlinux: []
|
||||
rust:
|
||||
ubuntu: ["rustc", "cargo"]
|
||||
ubuntu: []
|
||||
archlinux: ["rustup"]
|
||||
musescore:
|
||||
ubuntu: ["musescore3"]
|
||||
|
||||
14
playbook.yml
14
playbook.yml
@@ -394,13 +394,21 @@
|
||||
system: true
|
||||
become: true
|
||||
|
||||
- name: install rustup on ubuntu
|
||||
shell: curl https://sh.rustup.rs -sSf | sh -s -- -y
|
||||
args:
|
||||
creates: /var/lib/rust_build/.cargo/bin/rustup
|
||||
become: true
|
||||
become_user: rust_build
|
||||
when: distro == 'ubuntu'
|
||||
|
||||
- name: add rustup stable toolchain
|
||||
command: rustup default stable
|
||||
shell: . ~/.cargo/env && rustup default stable
|
||||
become: true
|
||||
become_user: rust_build
|
||||
|
||||
- name: update rustup stable toolchain
|
||||
command: rustup update stable
|
||||
shell: . ~/.cargo/env && rustup update stable
|
||||
become: true
|
||||
become_user: rust_build
|
||||
|
||||
@@ -428,6 +436,8 @@
|
||||
|
||||
- name: build rust crates
|
||||
shell: |
|
||||
set -o errexit
|
||||
. ~/.cargo/env
|
||||
cargo install --version {{ item.version }} {{ item.crate }}
|
||||
mv /var/lib/rust_build/.cargo/bin/{{ item. binary }} /var/lib/rust_build/.cargo/bin/{{ item.binary }}.{{ item.version }}
|
||||
args:
|
||||
|
||||
8
user.yml
8
user.yml
@@ -365,6 +365,14 @@
|
||||
tags: [update]
|
||||
tags: [vim-plugins]
|
||||
|
||||
- block:
|
||||
- name: install rustup on ubuntu
|
||||
shell: curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path
|
||||
args:
|
||||
creates: ~/.cargo/bin/rustup
|
||||
when: distro == 'ubuntu'
|
||||
tags: [rust]
|
||||
|
||||
- block:
|
||||
- name: create firefox directories
|
||||
firefox_profile:
|
||||
|
||||
@@ -3,6 +3,7 @@ source /etc/profile
|
||||
_path=(
|
||||
"$HOME/bin"
|
||||
"$HOME/.optbin"
|
||||
"$HOME/.cargo/bin"
|
||||
)
|
||||
|
||||
for part in ${_path[@]} ; do
|
||||
|
||||
Reference in New Issue
Block a user