---
- name: Enable base runit services
  tags: [services, packages]
  ansible.builtin.file:
    src: "/etc/sv/{{ item }}"
    dest: "/var/service/{{ item }}"
    state: link
  loop: "{{ enabled_services | default([]) }}"

- name: Enable host runit services
  tags: [services, packages]
  ansible.builtin.file:
    src: "/etc/sv/{{ item }}"
    dest: "/var/service/{{ item }}"
    state: link
  loop: "{{ host_enabled_services | default([]) }}"
