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