add env var for frawk, use bash directly to install rustup, fix bottom install

main
Andrew Coleman 2021-05-10 14:55:35 -04:00
parent ffeb74f7d4
commit 6184e13a88
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
--- ---
- name: install rustup - 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 command: /bin/bash -c "curl -sSf -o rustup_init https://sh.rustup.rs && /bin/bash rustup_init --no-modify-path --verbose -y --default-toolchain stable && rm -f rustup_init && source ~/.cargo/env && rustup install nightly"
args: args:
warn: False warn: False
creates: "{{ ansible_env.HOME }}/.cargo/bin/rustup" creates: "{{ ansible_env.HOME }}/.cargo/bin/rustup"
@ -20,8 +20,8 @@
args: args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/bat" creates: "{{ ansible_env.HOME }}/.cargo/bin/bat"
- name: install btm - name: install bottom
command: cargo install btm command: cargo install bottom
when: ansible_facts['system']|lower == 'linux' when: ansible_facts['system']|lower == 'linux'
args: args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/btm" creates: "{{ ansible_env.HOME }}/.cargo/bin/btm"
@ -63,7 +63,7 @@
creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk" creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk"
- name: install frawk linux - name: install frawk linux
command: cargo +nightly install frawk shell: LLVM_SYS_100_PREFIX=/usr/lib64/llvm10 cargo +nightly install frawk
when: ansible_facts['system']|lower == 'linux' when: ansible_facts['system']|lower == 'linux'
args: args:
creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk" creates: "{{ ansible_env.HOME }}/.cargo/bin/frawk"