From d59ee939a44f3b14dae6071e3248549a1f0edd9f Mon Sep 17 00:00:00 2001 From: Hyperling Date: Sun, 11 Jul 2021 08:00:03 -0500 Subject: [PATCH] Try overwriting the Ansible collected fact 'ansible_pkg_mgr' when using Parrot OS. --- facts/general/package.yml | 9 ++++++++- facts/workstation/package.yml | 6 ++++++ 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/facts/general/package.yml b/facts/general/package.yml index 51cae87..f368b66 100644 --- a/facts/general/package.yml +++ b/facts/general/package.yml @@ -7,7 +7,7 @@ sshfs: sshfs locate: locate opensshd: openssh-server - when: ansible_pkg_mgr = "apt" + when: ansible_pkg_mgr == "apt" - name: General | Facts | Package | pacman @@ -24,3 +24,10 @@ locate: htop # Placeholder to prevent errors, locate built into FreeBSD. opensshd: htop # sshd comes installed on FreeBSD when: ansible_system == "FreeBSD" + + +- name: General | Facts | Packages | Parrot OS Zypper Fix + set_fact: + ansible_pkg_mgr: "apt" + when: ansible_distribution == "Parrot OS" + diff --git a/facts/workstation/package.yml b/facts/workstation/package.yml index 64e10e0..7e58141 100644 --- a/facts/workstation/package.yml +++ b/facts/workstation/package.yml @@ -60,3 +60,9 @@ firefox_esr: firefox-esr psutil: py37-psutil when: ansible_system == "FreeBSD" + + +- name: Workstation | Facts | Packages | Parrot OS Zypper Fix + set_fact: + ansible_pkg_mgr: "apt" + when: ansible_distribution = "Parrot OS"