Elminate usage of "BOOL == true".

This commit is contained in:
me committed 2026-10-02 07:51:10 -07:00
1 parent 198a731f9e
commit 0a820394bb
14 files changed
+88 -87

No files matched your search

+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 }}"