Merge pull request #1897 from federicofantini/patch-1
Fix boolean conditionals
This commit is contained in:
commit
45e145d977
@ -108,7 +108,7 @@
|
||||
delay: 5
|
||||
tags: debug
|
||||
when:
|
||||
- hostvars[inventory_hostname]['private_ip'] is not defined or not hostvars[inventory_hostname]['private_ip']
|
||||
- hostvars[inventory_hostname]['private_ip'] is not defined or (hostvars[inventory_hostname]['private_ip'] | string | length) == 0
|
||||
|
||||
- name: Wait for Wazuh indexer API (Private IP)
|
||||
uri:
|
||||
@ -127,7 +127,7 @@
|
||||
delay: 5
|
||||
tags: debug
|
||||
when:
|
||||
- hostvars[inventory_hostname]['private_ip'] is defined and hostvars[inventory_hostname]['private_ip']
|
||||
- hostvars[inventory_hostname]['private_ip'] is defined and (hostvars[inventory_hostname]['private_ip'] | string | length) > 0
|
||||
|
||||
- import_tasks: "RMRedHat.yml"
|
||||
when: ansible_os_family == "RedHat"
|
||||
|
||||
@ -114,5 +114,6 @@
|
||||
register: result
|
||||
until: result.status in [200,201,401]
|
||||
when:
|
||||
- indexer_custom_user is defined and indexer_custom_user
|
||||
- indexer_create_custom_user | default(false) | bool
|
||||
- indexer_custom_user | default('') | trim | length > 0
|
||||
- inventory_hostname == ansible_play_hosts[0]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user