adjusting variable names, fixing errors
This commit is contained in:
@@ -6,26 +6,26 @@
|
||||
## Methods: source
|
||||
## Helpers: cargo
|
||||
---
|
||||
- name: Set choose default facts
|
||||
- name: Set choose default facts # {{{
|
||||
ansible.builtin.set_fact:
|
||||
choose:
|
||||
install_methods:
|
||||
methods:
|
||||
- source
|
||||
version: 1.3.7
|
||||
|
||||
# }}}
|
||||
- name: Configure choose
|
||||
when:
|
||||
- "'choose' not in __configured"
|
||||
block:
|
||||
- name: Set choose install method
|
||||
when:
|
||||
- choose_install_method is undefined
|
||||
- choose_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
choose_install_method: "{{ install_method if install_method in choose.install_methods else choose.install_methods[0] }}"
|
||||
choose_imethod: "{{ imethod if imethod in choose.methods else choose.methods[0] }}"
|
||||
|
||||
- name: Configure choose source install
|
||||
when:
|
||||
- choose_install_method == 'source'
|
||||
- choose_imethod == 'source'
|
||||
block:
|
||||
- name: Configure choose cargo install
|
||||
ansible.builtin.set_fact:
|
||||
@@ -37,6 +37,10 @@
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [choose_cargo_install] }}"
|
||||
|
||||
- name: Finalise choose cargo install
|
||||
ansible.builtin.set_fact:
|
||||
choose_install: "{{ choose_imethod }}={{ choose_cargo_install] }}"
|
||||
|
||||
- name: Finalise choose configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'choose': choose_install_method } ) }}"
|
||||
__configured: "{{ __configured | combine( { 'choose': choose_install } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user