feat(packages): Add personal repository

Add my own package repository and let users define additional custom
repositories to install. Enable installation of packages from my
repository.
This commit is contained in:
Marty Oehme 2025-03-05 16:10:30 +01:00
parent 5cd967b6e5
commit db562158f7
Signed by: Marty
GPG key ID: 4E535BC19C61886E
4 changed files with 21 additions and 0 deletions
group_vars
roles/packages

View file

@ -70,3 +70,10 @@ packages_terminal:
- zoxide
- zr # zsh plugin manager
- zsh
packages_custom:
- bemoji
- dotter
- filtile-bin
- localsend-go
- ripgrep-all

View file

@ -0,0 +1,2 @@
custom_repositories:
- https://marty-oehme.github.io/void-templates

View file

@ -1,3 +1,12 @@
---
- name: Add custom repositories
ansible.builtin.template:
src: custom-repos.conf.j2
dest: /etc/xbps.d/20-custom-repositories.conf
tags:
- repositories
- custom_packages
- name: Install all my used void packages
community.general.xbps:
name: "{{ lookup('community.general.merge_variables', '^packages_.*') }}"

View file

@ -0,0 +1,3 @@
{% for item in custom_repositories %}
repository={{ item }}
{% endfor %}