fix choose
This commit is contained in:
@@ -12,10 +12,13 @@
|
|||||||
methods:
|
methods:
|
||||||
Archlinux: [system, source]
|
Archlinux: [system, source]
|
||||||
default: [source]
|
default: [source]
|
||||||
|
pkgname:
|
||||||
|
default: choose
|
||||||
- name: Finalise choose default facts
|
- name: Finalise choose default facts
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
choose:
|
choose:
|
||||||
methods: "{{ choose.methods[os_family] | default(choose.methods.defualt) }}"
|
methods: "{{ choose.methods[os_family] | default(choose.methods.default) }}"
|
||||||
|
pkgname: "{{ choose.pkgname[os_family] | default(choose.methods.default)}}"
|
||||||
version: 1.3.7
|
version: 1.3.7
|
||||||
# }}}
|
# }}}
|
||||||
- name: Configure choose
|
- name: Configure choose
|
||||||
@@ -28,6 +31,15 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
choose_imethod: "{{ imethod if imethod in choose.methods else choose.methods[0] }}"
|
choose_imethod: "{{ imethod if imethod in choose.methods else choose.methods[0] }}"
|
||||||
|
|
||||||
|
- name: Configure choose system install
|
||||||
|
when:
|
||||||
|
- choose_imethod == 'system'
|
||||||
|
block:
|
||||||
|
- name: Queue choose system install
|
||||||
|
ansible.builtin.set_fact:
|
||||||
|
pkg_sys: "{{ pkg_sys + [choose.pkgname] }}"
|
||||||
|
choose_install: "{{ choose_imethod }}={{ choose.pkgname }}"
|
||||||
|
|
||||||
- name: Configure choose source install
|
- name: Configure choose source install
|
||||||
when:
|
when:
|
||||||
- choose_imethod == 'source'
|
- choose_imethod == 'source'
|
||||||
@@ -41,9 +53,6 @@
|
|||||||
- name: Append choose to pkg_cargo
|
- name: Append choose to pkg_cargo
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
pkg_cargo: "{{ pkg_cargo + [choose_cargo_install] }}"
|
pkg_cargo: "{{ pkg_cargo + [choose_cargo_install] }}"
|
||||||
|
|
||||||
- name: Finalise choose cargo install
|
|
||||||
ansible.builtin.set_fact:
|
|
||||||
choose_install: "{{ choose_imethod }}={{ choose_cargo_install }}"
|
choose_install: "{{ choose_imethod }}={{ choose_cargo_install }}"
|
||||||
|
|
||||||
- name: Finalise choose configuration
|
- name: Finalise choose configuration
|
||||||
|
|||||||
Reference in New Issue
Block a user