Only try removing Metasploit if it exists.
This commit is contained in:
1 parent
f46b0bad96
commit
57e8824d16
1 file changed
+1
-1
@@ -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
|
||||
Reference in new issue
Block a user