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