Squash merge move_to_single_file_pkgs into main

This commit is contained in:
Matthew Stobbs
2026-04-13 14:50:45 -06:00
parent ff740426c8
commit 8dc427f027
373 changed files with 3883 additions and 9963 deletions

View File

@@ -1,13 +1,45 @@
# vim: set filetype=yaml.ansible :
#
## Package: eza
## Description: modern replacement for ls
## Version: latest
## Methods: source
## Helpers: cargo
---
- name: Add eza
- name: Set eza default facts # {{{
ansible.builtin.set_fact:
eza:
methods:
- source
- system
# }}}
- 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_imethod is undefined
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + ['eza'] }}"
eza_imethod: "{{ imethod if imethod in eza.methods else eza.methods[0] }}"
- name: Set eza_configured
- name: Configure eza source install
when:
- eza_imethod == "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: Finalise eza source install
ansible.builtin.set_fact:
eza_install: "{{ eza_imethod }}={{ eza_cargo_install }}"
- name: Finalized eza configuration
ansible.builtin.set_fact:
eza_configured: true
__configured: "{{ __configured | combine( { 'eza': eza_install} ) }}"