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