From 57e8824d16aa00cb2ef2f1395f8c857626bfe104 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Thu, 30 Jul 2026 09:25:46 -0700 Subject: [PATCH] Only try removing Metasploit if it exists. --- tasks/general/software/metasploit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/general/software/metasploit.yml b/tasks/general/software/metasploit.yml index d61334e..a206fbe 100644 --- a/tasks/general/software/metasploit.yml +++ b/tasks/general/software/metasploit.yml @@ -50,5 +50,5 @@ - "apt purge metasploit-framework" - "apt autoremove --purge" when: ansible_system in ("Linux") and ansible_pkg_mgr == "apt" - and not metasploit_status.stat.exists + and metasploit_status.stat.exists and pentesting == false