TASK [elastic.elasticsearch : fail when api credentials are not declared when using security] ************************************************************************************
fatal: [es_main]: FAILED! => {"changed": false, "msg": "Enabling security requires an es_api_basic_auth_username and es_api_basic_auth_password to be provided to allow cluster operations"}
Error:
For fix, adding this to the vars :