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`).
This commit is contained in:
Marty Oehme 2025-03-02 18:08:14 +01:00
parent 5817a81f40
commit afac310f21
Signed by: Marty
GPG key ID: 4E535BC19C61886E
16 changed files with 27 additions and 28 deletions

View file

@ -1,7 +1,7 @@
- name: Ensure user group for audio/video exists
ansible.builtin.group:
name: "{{ item }}"
state: present
state: "present"
loop: "{{ audio_groups }}"
- name: Put user in audio group
@ -14,14 +14,14 @@
community.general.xbps:
name:
- pipewire
state: present
state: "{{ desired_package_state | default('present') }}"
tags: packages
- name: Install pipewire bluetooth
community.general.xbps:
name:
- libspa-bluetooth
state: present
state: "{{ desired_package_state | default('present') }}"
tags:
- packages
- bluetooth