Enable void-repo-nonfree before installing packages

This commit is contained in:
Fabio Scotto di Santolo
2026-03-16 11:27:37 +01:00
parent b04637f38a
commit f36c2b5617

View File

@@ -1,4 +1,16 @@
--- ---
- name: Install Void nonfree repository if needed
community.general.xbps:
name: void-repo-nonfree
state: present
update_cache: true
when: "'void-repo-nonfree' in (host_packages | default([]) + void_packages_base | default([]))"
- name: Refresh XBPS cache after enabling nonfree repository
ansible.builtin.command: xbps-install -S
changed_when: false
when: "'void-repo-nonfree' in (host_packages | default([]) + void_packages_base | default([]))"
- name: Install packages on Void Linux - name: Install packages on Void Linux
community.general.xbps: community.general.xbps:
name: >- name: >-