finished with a bunch more
This commit is contained in:
@@ -4,10 +4,26 @@
|
||||
when:
|
||||
- "'starship' not in __configured"
|
||||
block:
|
||||
- name: Append starship to pkg_cargo
|
||||
- name: Set starship install method
|
||||
when:
|
||||
- starship_install_method is undefined
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [{'name': 'starship', 'locked': true}] }}"
|
||||
starship_install_method: "{{ install_method if install_method in starship.install_methods else starship.install_methods[0] }}"
|
||||
|
||||
- name: Finalize startship configuration
|
||||
- name: Configure starship source install
|
||||
when:
|
||||
- starship_install_method == "source"
|
||||
block:
|
||||
- name: Set cargo build options
|
||||
ansible.builtin.set_fact:
|
||||
starship_cargo_install:
|
||||
name: starship
|
||||
locked: true
|
||||
version: "{{ starship_version | default(omit) }}"
|
||||
- name: Append starship to pkg_cargo
|
||||
ansible.builtin.set_fact:
|
||||
pkg_cargo: "{{ pkg_cargo + [{'name': 'starship', 'locked': true}] }}"
|
||||
|
||||
- name: Finalize starship configuration
|
||||
ansible.builtin.set_fact:
|
||||
__configured: "{{ __configured | combine( { 'starship': true } ) }}"
|
||||
__configured: "{{ __configured | combine( { 'starship': starship_install_method } ) }}"
|
||||
|
||||
Reference in New Issue
Block a user