Hi everyone! Is there any possibility for me to create a user for an 
application, for instance Rocket.Chat, with ansible? I was using uri_module.
I tried to get the system info and login with ansible-playbook, which 
worked just fine for me. So basically I think it is possible to call the 
API with ansible. 
<https://lh3.googleusercontent.com/-o83BZgk9mMg/Wvw4IVb8A1I/AAAAAAAAAAY/_LH_6H5aFyE3LsL6dyK2XyE3bGgQ06tNQCLcBGAs/s1600/asdf.PNG>


<https://lh3.googleusercontent.com/-ckqOgtXElwM/Wvw4N-EK9kI/AAAAAAAAAAc/mcDBuVnPDPMV7fCeqLd2iE94W3glIOJQACLcBGAs/s1600/re.PNG>




















But once i tried to create a new user, error happened.

I am not sure, if i understood the term "user" and "password" correctly. 
And i don't know the value of these 2 parameters. Are they the coded token 
something or just the account information of Rocketchat? 
<https://lh3.googleusercontent.com/-4laYmK3-USE/Wvw2zZJpx1I/AAAAAAAAAAM/Bx0sJJLNBJga6th-mdY9MGZ72p_ql_aqACLcBGAs/s1600/asdf.PNG>


Moreover, there should be more parameters for the authentication process: 
(https://rocket.chat/docs/developer-guides/rest-api/users/create/)

<https://lh3.googleusercontent.com/-hzkVr5ueOSo/Wvw6ZdCMWmI/AAAAAAAAAAs/vEzF9iABidIKSGlWHZcr3Jk8vjY3pioDwCLcBGAs/s1600/wfsdg.PNG>







But I dont know where to put them? in the Body?

Thanks for your help!

best wishes

Huimin

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/0f4613d2-52e6-41da-be67-29ab0c93b736%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to