fix(windows): 🐛 correct the logic around installing sysmon to respect explicit false settings

fix #6

Signed-off-by: kernel-sanders <1490292+kernel-sanders@users.noreply.github.com>
This commit is contained in:
kernel-sanders
2026-05-12 23:55:10 -04:00
parent 2d42785849
commit dc44bd98db
+4 -2
View File
@@ -83,5 +83,7 @@
- name: Install Sysmon if required
ansible.builtin.include_tasks: sysmon.yml
when:
- (ludus_elastic_install_sysmon is none and ludus_elastic_agent_version is version('9.0.0', '>='))
or (ludus_elastic_install_sysmon | default(true, true))
- ludus_elastic_install_sysmon | default(
ludus_elastic_agent_version is version('9.0.0', '>='),
false
) | bool