add archlinux installation methods
This commit is contained in:
@@ -9,6 +9,16 @@
|
||||
- name: Set lazygit default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
lazygit:
|
||||
methods:
|
||||
Archlinux: [system, source]
|
||||
default: [source]
|
||||
pkgname:
|
||||
default: lazygit
|
||||
- name: Finalise lazygit default facts
|
||||
ansible.builtin.set_fact:
|
||||
lazygit:
|
||||
methods: "{{ lazygit.methods[os_family] | default(lazygit.methods.default) }}"
|
||||
pkgname: "{{ lazygit.pkgname[os_family] | default(lazygit.pkgname.default) }}"
|
||||
url: github.com/jesseduffield/lazygit
|
||||
version: "{{ lazygit_version | default('latest') }}"
|
||||
pkg_deps:
|
||||
@@ -22,6 +32,15 @@
|
||||
ansible.builtin.set_fact:
|
||||
lazygit_imethod: "{{ imethod if imethod in lazygit.methods else lazygit.methods[0] }}"
|
||||
|
||||
- name: Configure lazygit system install
|
||||
when:
|
||||
- lazygit_imethod == 'system'
|
||||
block:
|
||||
- name: Queue lazygit system install
|
||||
ansible.builtin.set_fact:
|
||||
pkg_sys: "{{ pkg_sys + [lazygit.pkgname] }}"
|
||||
lazygit_install: "{{ lazygit_imethod }}={{ lazygit.pkgname }}"
|
||||
|
||||
- name: Configure lazygit source install
|
||||
when:
|
||||
- lazygit_imethod == 'source'
|
||||
|
||||
Reference in New Issue
Block a user