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:
parent
5cd967b6e5
commit
db562158f7
4 changed files with 21 additions and 0 deletions
|
@ -70,3 +70,10 @@ packages_terminal:
|
||||||
- zoxide
|
- zoxide
|
||||||
- zr # zsh plugin manager
|
- zr # zsh plugin manager
|
||||||
- zsh
|
- zsh
|
||||||
|
|
||||||
|
packages_custom:
|
||||||
|
- bemoji
|
||||||
|
- dotter
|
||||||
|
- filtile-bin
|
||||||
|
- localsend-go
|
||||||
|
- ripgrep-all
|
||||||
|
|
2
roles/packages/defaults/main.yaml
Normal file
2
roles/packages/defaults/main.yaml
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
custom_repositories:
|
||||||
|
- https://marty-oehme.github.io/void-templates
|
|
@ -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
|
- name: Install all my used void packages
|
||||||
community.general.xbps:
|
community.general.xbps:
|
||||||
name: "{{ lookup('community.general.merge_variables', '^packages_.*') }}"
|
name: "{{ lookup('community.general.merge_variables', '^packages_.*') }}"
|
||||||
|
|
3
roles/packages/templates/custom-repos.conf.j2
Normal file
3
roles/packages/templates/custom-repos.conf.j2
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{% for item in custom_repositories %}
|
||||||
|
repository={{ item }}
|
||||||
|
{% endfor %}
|
Loading…
Reference in a new issue