- name: Install bluetooth packages
  community.general.xbps:
    name:
      - bluez
    state: "{{ desired_package_state }}"
  tags: packages

- name: Activate bluetooth service
  ansible.builtin.file:
    force: "yes"
    src: "/etc/sv/{{ item }}"
    dest: "/etc/runit/runsvdir/default/{{ item }}"
    state: link
  with_items:
    - bluetoothd
    - dbus