--- - name: "[Alpine] Install package: radicale" apk: name: radicale state: present when: - ansible_distribution == "Alpine" - name: "[Archlinux] Install package: radicale" pacman: name: radicale state: present when: - ansible_distribution == "Archlinux"