diff --git a/roles/powershell/tasks/main.yml b/roles/powershell/tasks/main.yml index 788666a..e649305 100644 --- a/roles/powershell/tasks/main.yml +++ b/roles/powershell/tasks/main.yml @@ -11,3 +11,5 @@ cmd: makepkg -cirs --needed chdir: ~/builds/powershell-bin when: ansible_distribution == 'Archlinux' + register: result + changed_when: "'installing existing package' not in result.stderr" diff --git a/roles/protonvpn/tasks/main.yml b/roles/protonvpn/tasks/main.yml index 5716374..0167eee 100644 --- a/roles/protonvpn/tasks/main.yml +++ b/roles/protonvpn/tasks/main.yml @@ -26,6 +26,8 @@ cmd: makepkg -cirs --needed chdir: ~/builds/openvpn-update-systemd-resolved when: ansible_distribution == 'Archlinux' + register: result + changed_when: "'installing existing package' not in result.stderr" - name: Copy client confs become: true