Make it work also with arm
This commit is contained in:
parent
27dbb4e032
commit
a0af4d1d29
|
@ -1,4 +1,6 @@
|
|||
---
|
||||
zsh_chic:
|
||||
antibody: false
|
||||
starship: false
|
||||
zsh_chic_antibody: false
|
||||
zsh_chic_starship: false
|
||||
zsh_chic_bat_version: 0.17.1
|
||||
zsh_chic_arch: amd64
|
||||
zsh_chic_starship_version: 0.47.0
|
||||
|
|
|
@ -13,20 +13,24 @@
|
|||
|
||||
- name: Obtain bat .deb package
|
||||
get_url:
|
||||
url: https://github.com/sharkdp/bat/releases/download/v0.13.0/bat_0.13.0_amd64.deb
|
||||
dest: /tmp/bat_0.13.0_amd64.deb
|
||||
url: "https://github.com/sharkdp/bat/releases/download/v{{ zsh_chic_bat_version }}/bat_{{ zsh_chic_bat_version }}_{{ zsh_chic_arch }}.deb"
|
||||
dest: "/tmp/bat_{{ zsh_chic_bat_version }}_amd64.deb"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
register: new_bat_deb
|
||||
|
||||
- name: Install bat
|
||||
shell: dpkg -i /tmp/bat_0.13.0_amd64.deb
|
||||
shell: "dpkg -i /tmp/bat_{{ zsh_chic_bat_version }}_amd64.deb"
|
||||
when: new_bat_deb is defined and new_bat_deb.changed
|
||||
|
||||
- include_tasks: antibody.yml
|
||||
|
||||
- include_tasks: starship.yml
|
||||
- include_tasks: starship_x64.yml
|
||||
when: zsh_chic_arch == 'amd64'
|
||||
|
||||
- include_tasks: starship_arm.yml
|
||||
when: false # There is no binary for arm
|
||||
|
||||
- include_tasks: powerline.yml
|
||||
|
||||
|
|
11
tasks/starship_arm.yml
Normal file
11
tasks/starship_arm.yml
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
- name: Download starship installer
|
||||
get_url:
|
||||
url: https://starship.rs/install.sh
|
||||
dest: /root/starship.sh
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
|
||||
- name: Install starship (via installer)
|
||||
shell: /root/starship.sh -y
|
|
@ -1,13 +1,11 @@
|
|||
---
|
||||
- name: Download starship binary
|
||||
- name: Download starship binary (x64)
|
||||
get_url:
|
||||
url: https://github.com/starship/starship/releases/download/{{ version }}/starship-x86_64-unknown-linux-gnu.tar.gz
|
||||
url: https://github.com/starship/starship/releases/download/v{{ zsh_chic_starship_version }}/starship-x86_64-unknown-linux-gnu.tar.gz
|
||||
dest: /root/starship.tar.gz
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0755
|
||||
vars:
|
||||
version: "v0.39.0"
|
||||
|
||||
- name: Extract and install starship binary
|
||||
unarchive:
|
Loading…
Reference in New Issue
Block a user