diff --git a/tasks/xpack/security/elasticsearch-xpack-activation.yml b/tasks/xpack/security/elasticsearch-xpack-activation.yml index 7ad03d95..2bce5bb0 100644 --- a/tasks/xpack/security/elasticsearch-xpack-activation.yml +++ b/tasks/xpack/security/elasticsearch-xpack-activation.yml @@ -27,7 +27,7 @@ return_content: yes register: license_activated no_log: True - when: es_api_basic_auth_username is defined or es_api_basic_auth_password is defined + when: es_api_basic_auth_username is defined and es_api_basic_auth_password is defined failed_when: > license_activated.status != 200 or license_activated.json.license_status is not defined or