--- - name: Install arr packages when: ansible_facts['os_family'] == "Archlinux" community.general.pacman: name: "{{ arr_packages }}" state: present update_cache: true - name: Start arr services ansible.builtin.systemd: name: "{{ item }}" state: started enabled: true daemon_reload: true loop: - sonarr.service - radarr.service - lidarr.service - prowlarr.service