Ensure boolean condition evaluations
This commit is contained in:
parent
4b002a62ab
commit
efb6d1a4f4
@ -242,7 +242,7 @@
|
||||
notify: restart wazuh-manager
|
||||
when:
|
||||
- csyslog_enabled.stdout == '0' or "skipped" in csyslog_enabled.stdout
|
||||
- syslog_output is defined and syslog_output
|
||||
- syslog_output is defined and (syslog_output | bool)
|
||||
tags:
|
||||
- config
|
||||
|
||||
|
||||
@ -108,7 +108,8 @@
|
||||
delay: 5
|
||||
tags: debug
|
||||
when:
|
||||
- hostvars[inventory_hostname]['private_ip'] is not defined or (hostvars[inventory_hostname]['private_ip'] | string | length) == 0
|
||||
- hostvars[inventory_hostname]['private_ip'] is not defined or
|
||||
(hostvars[inventory_hostname]['private_ip'] | length) == 0
|
||||
|
||||
- name: Wait for Wazuh indexer API (Private IP)
|
||||
uri:
|
||||
@ -127,7 +128,8 @@
|
||||
delay: 5
|
||||
tags: debug
|
||||
when:
|
||||
- hostvars[inventory_hostname]['private_ip'] is defined and (hostvars[inventory_hostname]['private_ip'] | string | length) > 0
|
||||
- hostvars[inventory_hostname]['private_ip'] is defined and
|
||||
(hostvars[inventory_hostname]['private_ip'] | length) > 0
|
||||
|
||||
- import_tasks: "RMRedHat.yml"
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user