--- - become: yes when: ansible_distribution == "Ubuntu" block: - name: "[Ubuntu] add signal gpg key" apt_key: url: https://updates.signal.org/desktop/apt/keys.asc state: present - name: "[Ubuntu] add signal repo" apt_repository: repo: deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main state: present filename: signal-xenial - name: "[Ubuntu] install signal-desktop" apt: update_cache: yes pkg: - signal-desktop - name: "[Arch] install signal-desktop" when: ansible_distribution == "Archlinux" become: yes community.general.pacman: update_cache: yes name: signal-desktop