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