Elminate usage of "BOOL == true".

This commit is contained in:
me
2026-10-02 07:51:10 -07:00
parent 198a731f9e
commit 0a820394bb
14 changed files with 88 additions and 87 deletions
+3 -3
View File
@@ -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 }}"