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