--- - name: Clone powershell-bin ansible.builtin.git: repo: https://aur.archlinux.org/powershell-bin.git dest: ~/builds/powershell-bin clone: true update: false when: ansible_facts['distribution'] == 'Archlinux' - name: Make and install powershell-bin ansible.builtin.command: cmd: makepkg -cirs --needed chdir: ~/builds/powershell-bin stdin: Y when: ansible_facts['distribution'] == 'Archlinux' register: result changed_when: "'installing existing package' not in result.stderr"