finished with a bunch more

This commit is contained in:
Matthew Stobbs
2026-03-03 15:08:15 -07:00
parent 24a4ec17ec
commit 065031b77f
27 changed files with 364 additions and 208 deletions

View File

@@ -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 } ) }}"