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