Only try removing Metasploit if it exists.
This commit is contained in:
@@ -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