diff options
-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 }} |