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