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