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