This repository has been archived on 2021-09-08. You can view files and clone it, but cannot push or open issues/pull-requests.
localdev-playbooks/rust.yml

152 lines
3.9 KiB
YAML

---
- name: install rustup
command: curl -o t.sh https://sh.rustup.rs -sSf && chmod 700 t.sh && ./t.sh --no-modify-path --verbose -y --default-toolchain stable && rm -f t.sh && ~/.cargo/bin/rustup install toolchain nightly
args:
warn: False
creates: "{{ ansible_env.HOME }}/.cargo/bin/rustup"
- name: install amber
command: cargo install amber
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/ambr"
- name: install basic-http-server
command: cargo install basic-http-server
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/basic-http-server"
- name: install bat
command: cargo install bat
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/bat"
- name: install btm
command: cargo install btm
when: ansible_facts['system']|lower == 'linux'
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/btm"
- name: install choose
command: cargo install choose
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/choose"
- name: install delta
command: cargo install git-delta
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/delta"
- name: install dust
command: cargo install du-dust
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/dust"
- name: install endbasic
command: cargo install endbasic
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/endbasic"
- name: install exa
command: cargo install exa
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/exa"
- name: install fd
command: cargo install fd-find
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/fd"
- name: install frawk freebsd
shell: LLVM_SYS_100_PREFIX=/usr/local/llvm10 cargo +nightly install frawk
when: ansible_facts['system']|lower == 'freebsd'
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk"
- name: install frawk linux
command: cargo +nightly install frawk
when: ansible_facts['system']|lower == 'linux'
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk"
- name: install git-gone
command: cargo install git-gone
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/git-gone"
- name: install gitui
command: cargo install gitui
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/gitui"
- name: install gget
command: cargo install gget
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/gget"
- name: install grex
command: cargo install grex
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/grex"
- name: install hexyl
command: cargo install hexyl
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/hexyl"
- name: install hyperfine
command: cargo install hyperfine
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/hyperfine"
- name: install kondo
command: cargo install kondo
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/kondo"
- name: install kubie
command: cargo install kubie
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/kubie"
- name: install lsd
command: cargo install lsd
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/lsd"
- name: install mdbook
command: cargo install mdbook
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/mdbook"
- name: install ncgopher
command: cargo install ncgopher
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/ncgopher"
- name: install rg
command: cargo install ripgrep
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/rg"
- name: install stargazer
command: cargo install stargazer
when: ansible_facts['system']|lower == 'linux'
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/stargazer"
- name: install wasm-pack
command: cargo install wasm-pack
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/wasm-pack"
- name: install xcp
command: cargo install xcp
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/xcp"
- name: install ytop
command: cargo install ytop
when: ansible_facts['system']|lower == 'linux'
args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/ytop"