system/roles/packages/tasks/main.yaml
Marty Oehme afac310f21
ref(roles): All roles use desired package state
By setting the `desired_package_state` variable we can change if ansible
should only ensure that the packages exist on the system (`present`) or
that they are also updated to their latest version (`latest`).
2025-03-13 11:24:14 +01:00

4 lines
208 B
YAML

- name: Install all my used void packages
community.general.xbps:
name: "{{ lookup('community.general.merge_variables', '^packages_.*') }}"
state: "{{ desired_package_state | default('present') }}"