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`).
4 lines
208 B
YAML
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') }}"
|