Elminate usage of "BOOL == true".
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
set_fact:
|
||||
metasploit_installer: msfinstall
|
||||
when: ansible_system in ("Linux", "Darwin")
|
||||
and pentesting == true
|
||||
and pentesting
|
||||
|
||||
- name: General | Software | Metasploit | Check Install Status
|
||||
stat:
|
||||
@@ -21,7 +21,7 @@
|
||||
- "mv -fv /etc/apt/preferences.d/pin-metasploit.pref /tmp/apt/pin-metasploit.pref.old"
|
||||
when: ansible_system in ("Linux") and ansible_pkg_mgr == "apt"
|
||||
and not metasploit_status.stat.exists
|
||||
and pentesting == true
|
||||
and pentesting
|
||||
ignore_errors: true
|
||||
|
||||
- name: General | Software | Metasploit | Install
|
||||
@@ -34,7 +34,7 @@
|
||||
- yes y | "{{ global_bin }}/{{ metasploit_installer }}"
|
||||
when: ansible_system in ("Linux", "Darwin")
|
||||
and not metasploit_status.stat.exists
|
||||
and pentesting == true
|
||||
and pentesting
|
||||
|
||||
- name: General | Software | Metasploit | Remove (Darwin)
|
||||
shell: "{{ item }}"
|
||||
|
||||
Reference in New Issue
Block a user