From 7166e43a3bb89ce85ee6370cdfb5e021426d4d22 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 11 Jul 2021 08:50:24 -0500 Subject: [PATCH] Attempt to finish the Parrot exit logic. --- tasks/general/software/packages.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tasks/general/software/packages.yml b/tasks/general/software/packages.yml index be5b150..e4993c7 100644 --- a/tasks/general/software/packages.yml +++ b/tasks/general/software/packages.yml @@ -10,10 +10,14 @@ ignore_errors: yes when: ansible_distribution == "Parrot OS" -- name: General | Software | Packages | Fixed Parrot OS, Exit +- name: General | Software | Packages | Fixed Parrot OS, Exit Incoming debug: - var: parrotos_zypper_removed -# when: parrotos_zypper_removed is defined and parrotos_zypper_removed.success + msg: "A silly zypper file was renamed successfully. Please try running Ansible again." + when: parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed + +- name: General | Software | Packages | Fixed Parrot OS, Exiting + shell: exit 1 + when: parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed - name: General | Software | Packages | Cache Refresh (Apt and Pacman)