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,19 +1,46 @@
# vim: set filetype=yaml.ansible :
#
## Package: choose
## Description: a human-friendly and fast alternative to cut and (sometimes) awk
## Version: latest
## Methods: source
## Helpers: cargo
---
- name: Add choose
- name: Set choose default facts # {{{
ansible.builtin.set_fact:
choose:
methods:
- source
version: 1.3.7
# }}}
- name: Configure choose
when:
- "'choose' not in __configured"
block:
- name: Load choose config
ansible.builtin.include_tasks:
file: config/choose.yml
- name: Append choose to pkg_cargo
- name: Set choose install method
when:
- ansible_system == 'Linux'
- choose_imethod is undefined
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + [choose] }}"
choose_imethod: "{{ imethod if imethod in choose.methods else choose.methods[0] }}"
- name: Append choose-rust to pkg_sys
- name: Configure choose source install
when:
- ansible_system == 'Darwin'
- choose_imethod == 'source'
block:
- name: Configure choose cargo install
ansible.builtin.set_fact:
choose_cargo_install:
name: choose
version: "{{ choose.version }}"
- name: Append choose to pkg_cargo
ansible.builtin.set_fact:
pkg_cargo: "{{ pkg_cargo + [choose_cargo_install] }}"
- name: Finalise choose cargo install
ansible.builtin.set_fact:
choose_install: "{{ choose_imethod }}={{ choose_cargo_install }}"
- name: Finalise choose configuration
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + ['choose-rust'] }}"
__configured: "{{ __configured | combine( { 'choose': choose_install } ) }}"