Add OS check to make Ubuntu happy.

This commit is contained in:
Hyperling 2021-07-13 06:03:30 -05:00
parent b3b2bd2745
commit 1b5be7cebe

View File

@ -13,11 +13,11 @@
- name: General | Software | Packages | Fixed Parrot OS, Exit Incoming - name: General | Software | Packages | Fixed Parrot OS, Exit Incoming
debug: debug:
msg: "A silly zypper file was renamed successfully. Please try running Ansible again." 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 when: ansible_distribution == "Parrot OS" and parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed
- name: General | Software | Packages | Fixed Parrot OS, Exiting - name: General | Software | Packages | Fixed Parrot OS, Exiting
shell: exit 1 shell: exit 1
when: parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed when: ansible_distribution == "Parrot OS" and parrotos_zypper_removed is defined and not parrotos_zypper_removed.failed
- name: General | Software | Packages | Cache Refresh (Apt and Pacman) - name: General | Software | Packages | Cache Refresh (Apt and Pacman)