working on more package, almost done
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
- name: Set starship default config
|
||||
ansible.builtin.set_fact:
|
||||
starship:
|
||||
install_methods:
|
||||
methods:
|
||||
- source
|
||||
|
||||
- name: Configure starship
|
||||
@@ -18,13 +18,13 @@
|
||||
block:
|
||||
- name: Set starship install method
|
||||
when:
|
||||
- starship_install_method is undefined
|
||||
- starship_imethod is undefined
|
||||
ansible.builtin.set_fact:
|
||||
starship_install_method: "{{ install_method if install_method in starship.install_methods else starship.install_methods[0] }}"
|
||||
starship_imethod: "{{ imethod if imethod in starship.methods else starship.methods[0] }}"
|
||||
|
||||
- name: Configure starship source install
|
||||
when:
|
||||
- starship_install_method == "source"
|
||||
- starship_imethod == "source"
|
||||
block:
|
||||
- name: Set cargo build options
|
||||
ansible.builtin.set_fact:
|
||||
@@ -38,4 +38,4 @@
|
||||
|
||||
- name: Finalize starship configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'starship': starship_install_method } ) }}"
|
||||
__configured: "{{ __configured | combine( { 'starship': starship_imethod } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user