Compare commits

...

2 commits

Author SHA1 Message Date
b4fbc9be8a
feat(packages): If yq-go is installed make it callable as yq 2025-09-02 12:27:24 +02:00
2eaac57090
chore(packages): Change generated list of packages to default variable
Means it can be overwritten, is defined in a single place, and easier to
invoke from individual tasks (if invoking from multiple).
2025-09-02 12:27:23 +02:00
3 changed files with 12 additions and 1 deletions

View file

@ -65,6 +65,7 @@ packages_terminal:
- wlopm
- wlsunset
- wtype
- yq-go
- yt-dlp
- zk
- zoxide

View file

@ -1,2 +1,4 @@
all_packages_to_install: "{{ lookup('community.general.merge_variables', '^packages_.*') }}"
custom_repositories:
- https://marty-oehme.github.io/void-templates

View file

@ -9,5 +9,13 @@
- name: Install all my used void packages
community.general.xbps:
name: "{{ lookup('community.general.merge_variables', '^packages_.*') }}"
name: all_packages_to_install
state: "{{ desired_package_state | default('present') }}"
- name: Ensure yq binary points to the yq-go version
ansible.builtin.file:
src: "/usr/bin/yq-go"
dest: "/usr/bin/yq"
state: link
when: "'yq-go' in all_packages_to_install"
tags: sut