Update conditions for custom user creation in YAML
This commit is contained in:
parent
dbae1c4bf0
commit
ea84ae86df
@ -114,5 +114,6 @@
|
|||||||
register: result
|
register: result
|
||||||
until: result.status in [200,201,401]
|
until: result.status in [200,201,401]
|
||||||
when:
|
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]
|
- inventory_hostname == ansible_play_hosts[0]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user