Update conditions for custom user creation in YAML

This commit is contained in:
Federico Fantini 2026-01-17 11:57:12 +01:00 committed by GitHub
parent dbae1c4bf0
commit ea84ae86df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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]