Getting the error "Cluster state has not been recovered yet, cannot write to the [null] index" in 7.3 version

hi,

we are trying to install elastic 7.3.0 in our env.
we have some ansible task that running the following curl behind the scenes:
curl -u es_admin:changeMe -X POST 'http://eaasrt1:9201/_security/user/nativeUser' -H 'Content-Type: application/json' -d '{"password": "ChangeMe", "roles": ["power_user", "user"]}'

this code worked fine in version 6.6 but not working in 7.3 and i am getting the following error:
getting the error "Cluster state has not been recovered yet, cannot write to the [null] index" in 7.3 version

can you please advise what is the issue and what can be the solution for that?

the following are the existing elastic users:
curl -u es_admin:changeMe -X GET 'http://eaasrt1:9201/_security/user' {"elastic":{"username":"elastic","roles":["superuser"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"kibana":{"username":"kibana","roles":["kibana_system"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"logstash_system":{"username":"logstash_system","roles":["logstash_system"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"beats_system":{"username":"beats_system","roles":["beats_system"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"apm_system":{"username":"apm_system","roles":["apm_system"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true},"remote_monitoring_user":{"username":"remote_monitoring_user","roles":["remote_monitoring_collector","remote_monitoring_agent"],"full_name":null,"email":null,"metadata":{"_reserved":true},"enabled":true}}

thanks a lot.
Ortal.