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`).
13 lines
288 B
YAML
13 lines
288 B
YAML
---
|
|
- name: Install iwd
|
|
community.general.xbps:
|
|
name:
|
|
- iwd
|
|
state: "{{ desired_package_state | default('present') }}"
|
|
|
|
- name: Activate wireless networking service
|
|
ansible.builtin.file:
|
|
src: "/etc/sv/iwd"
|
|
dest: "/etc/runit/runsvdir/default/iwd"
|
|
state: link
|
|
|