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