diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-02-02 14:47:48 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-02-02 14:47:48 +0200 |
commit | c35b6d70d8f496975c2f997a353f476080617c74 (patch) | |
tree | 903e9a0ab1e1382a60bc07b5487ccfefd6b97801 /ansible | |
parent | 9859a5f3075c5988f214a7def650cb842a300b9b (diff) | |
download | ansibleness-c35b6d70d8f496975c2f997a353f476080617c74.tar.gz |
exolobe1, rust-rustup: install Rust applications with cargo install
Sponsored-by: author
Diffstat (limited to 'ansible')
-rw-r--r-- | ansible/exolobe1.yml | 21 | ||||
-rw-r--r-- | ansible/roles/rust-rustup/tasks/main.yml | 6 |
2 files changed, 27 insertions, 0 deletions
diff --git a/ansible/exolobe1.yml b/ansible/exolobe1.yml index 70f25b3..ed100b0 100644 --- a/ansible/exolobe1.yml +++ b/ansible/exolobe1.yml @@ -28,6 +28,8 @@ - role: python-dev-env - role: unix_users - role: thinkpad + - role: rust-rustup + tags: [rustup] tasks: - apt: @@ -147,3 +149,22 @@ smarthost: pieni.net smarthost_user: pienirelay smarthost_password: "{{ lookup('pipe', 'pass show pieni.net/pienirelay') }}" + + rustup_cargo_install: | + cargo-audit \ + cargo-deny \ + cargo-deps \ + bandwhich \ + bat \ + cargo-edit \ + cargo-geiger \ + cargo-outdated \ + exa \ + fd-find \ + flamegraph \ + git-delta \ + hyperfine \ + ripgrep \ + starship \ + tokei \ + ytop diff --git a/ansible/roles/rust-rustup/tasks/main.yml b/ansible/roles/rust-rustup/tasks/main.yml index f49f27c..de43fa5 100644 --- a/ansible/roles/rust-rustup/tasks/main.yml +++ b/ansible/roles/rust-rustup/tasks/main.yml @@ -13,3 +13,9 @@ sudo -u liw -i sh /tmp/rustup.sh -y fi sudo -u liw -i rustup component add clippy +- name: "cargo install applications" + when: rustup_cargo_install is defined + args: + warn: no + shell: | + sudo -i -u liw cargo install {{ rustup_cargo_install }} |