Just remove the metasploit package, don't do autoremove since it does not work in non-interactive shells very well.
This commit is contained in:
@@ -44,11 +44,10 @@
|
|||||||
and not metasploit_status.stat.exists
|
and not metasploit_status.stat.exists
|
||||||
and pentesting == false
|
and pentesting == false
|
||||||
|
|
||||||
- name: General | Software | Metasploit | Remove (APT)
|
- name: General | Software | Metasploit | Remove
|
||||||
shell: "{{ item }}"
|
package:
|
||||||
loop:
|
name: "metasploit-framework"
|
||||||
- "apt purge metasploit-framework"
|
state: absent
|
||||||
- "apt autoremove --purge"
|
when: ansible_system in ("Linux")
|
||||||
when: ansible_system in ("Linux") and ansible_pkg_mgr == "apt"
|
|
||||||
and metasploit_status.stat.exists
|
and metasploit_status.stat.exists
|
||||||
and pentesting == false
|
and pentesting == false
|
||||||
|
|||||||
Reference in New Issue
Block a user