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

@@ -1,13 +1,28 @@
# vim: set filetype=yaml.ansible :
---
- name: Add eza
- name: Configure eza
when:
- eza_configured is undefined
- "'eza' not in __configured"
block:
- name: Append eza to pkg_cargo
- name: Set eza install method
when:
- eza_install_method is undefined
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['eza'] }}"
eza_install_method: "{{ install_method if install_method in eza.install_methods else eza.install_methods[0] }}"
- name: Set eza_configured
- name: Configure eza source install
when:
- eza_install_method == "source"
block:
- name: Configure eza cargo facts
ansible.builtin.set_fact:
eza_cargo_install:
name: eza
- name: Append eza to pkg_cargo
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + [eza_cargo_install] }}"
- name: Finalized eza configuration
ansible.builtin.set_fact:
eza_configured: true
__configured: "{{ __configured | combine( { 'eza': eza_install_method} ) }}"