Use deb
This commit is contained in:
parent
b2e4b49f05
commit
2f7261f04f
@ -32,17 +32,17 @@
|
|||||||
ansible.builtin.get_url:
|
ansible.builtin.get_url:
|
||||||
url: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/{{ omp_latest.tag }}/posh-linux-{{ apt_arch }}
|
url: https://github.com/JanDeDobbeleer/oh-my-posh/releases/download/{{ omp_latest.tag }}/posh-linux-{{ apt_arch }}
|
||||||
dest: /usr/local/bin/oh-my-posh
|
dest: /usr/local/bin/oh-my-posh
|
||||||
mode: "0744"
|
mode: "0755"
|
||||||
force: "yes"
|
force: "yes"
|
||||||
|
|
||||||
- name: Check if Chezmoi is installed
|
- name: Check if Chezmoi is installed
|
||||||
ansible.builtin.stat:
|
ansible.builtin.stat:
|
||||||
path: /usr/local/bin/chezmoi
|
path: /usr/bin/chezmoi
|
||||||
register: chezmoi_bin
|
register: chezmoi_bin
|
||||||
|
|
||||||
- name: Check Chezmoi version
|
- name: Check Chezmoi version
|
||||||
when: chezmoi_bin.stat.exists
|
when: chezmoi_bin.stat.exists
|
||||||
ansible.builtin.command: /usr/local/bin/chezmoi --version
|
ansible.builtin.command: /usr/bin/chezmoi --version
|
||||||
changed_when: false
|
changed_when: false
|
||||||
register: chezmoi_ver
|
register: chezmoi_ver
|
||||||
|
|
||||||
@ -56,11 +56,8 @@
|
|||||||
- name: Download Chezmoi
|
- name: Download Chezmoi
|
||||||
when: not chezmoi_bin.stat.exists or chezmoi_latest.tag.split(",")[0] != ( "chezmoi version v" + chezmoi_ver.stdout )
|
when: not chezmoi_bin.stat.exists or chezmoi_latest.tag.split(",")[0] != ( "chezmoi version v" + chezmoi_ver.stdout )
|
||||||
become: "{{ do_become }}"
|
become: "{{ do_become }}"
|
||||||
ansible.builtin.get_url:
|
ansible.builtin.apt:
|
||||||
url: https://github.com/twpayne/chezmoi/releases/download/{{ chezmoi_latest.tag }}/chezmoi-linux-{{ apt_arch }}
|
deb: https://github.com/twpayne/chezmoi/releases/download/{{ chezmoi_latest.tag }}/chezmoi_{{ chezmoi_latest.tag | replace("v","") }}_linux_{{ apt_arch }}.deb
|
||||||
dest: /usr/local/bin/chezmoi
|
|
||||||
mode: "0744"
|
|
||||||
force: "yes"
|
|
||||||
|
|
||||||
- name: Add OMP to bash
|
- name: Add OMP to bash
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
|
Loading…
Reference in New Issue
Block a user