Merge pull request #1915 from wazuh/enh/1911-Ensure_boolean_condition_evaluations__from_community_PR
Ensure boolean condition evaluations from community pr #1897
This commit is contained in:
commit
6c712058c2
@ -9,7 +9,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
- None
|
- Ensure boolean condition evaluations - from community PR #1897 ([#1911](https://github.com/wazuh/wazuh-ansible/pull/1911))
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -114,6 +114,5 @@
|
|||||||
register: result
|
register: result
|
||||||
until: result.status in [200,201,401]
|
until: result.status in [200,201,401]
|
||||||
when:
|
when:
|
||||||
- indexer_create_custom_user | default(false) | bool
|
|
||||||
- indexer_custom_user | default('') | trim | length > 0
|
- indexer_custom_user | default('') | trim | length > 0
|
||||||
- inventory_hostname == ansible_play_hosts[0]
|
- inventory_hostname == ansible_play_hosts[0]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user