Add task tags for selective playbook execution and fix vault loading

This commit is contained in:
Fabio Scotto di Santolo
2026-03-21 19:44:31 +01:00
parent 544cdb13a1
commit 065e5f65a6
4 changed files with 14 additions and 0 deletions

View File

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