Hi
i am installing elk stack using ansible playbook. I am able to set password using elasticsearch-reset-password for all users manually, from command line. How can i do the same using the playbook? if i run this command from playbook it will expect a password, i want to specify the password in the command itself. can i do it using curl command?
curl -X POST "localhost:9200/_security/user/elastic/_password?pretty" -H 'Content-Type: application/json' -d'
{
"password" : "test"
}'
tried this but getting a 401 error