Fix bare variable boolean

This commit is contained in:
Nathan Young 2019-10-11 23:01:05 +01:00
parent 5da76a85c7
commit 9580a08f4d
No known key found for this signature in database
GPG key ID: EB5E14327B10D023

View file

@ -82,7 +82,7 @@
# If playbook runs too fast, Native commands could fail as the Native Realm is not yet up
- name: Wait 15 seconds for the Native Realm to come up
command: sleep 15
when: manage_native_realm
when: manage_native_realm | bool
- name: activate-license
include: ./xpack/security/elasticsearch-xpack-activation.yml
@ -91,7 +91,7 @@
#perform security actions here now elasticsearch is started
- name: include xpack/security/elasticsearch-security-native.yml
include: ./xpack/security/elasticsearch-security-native.yml
when: manage_native_realm
when: manage_native_realm | bool
#Templates done after restart - handled by flushing the handlers. e.g. suppose user removes security on a running node and doesn't specify es_api_basic_auth_username and es_api_basic_auth_password. The templates will subsequently not be removed if we don't wait for the node to restart.
#We also do after the native realm to ensure any changes are applied here first and its denf up.