Hello, can you please help me getting the right API call to add an Ansible role to an host.
I’m doing this post;
Where ‘2701’ is the ID of the host.
Below the data;
“ansible_role_ids”: [ “22” ]
Where “22” is the ID of the ansible role.
Problem is is that the ‘post’ works without error but when I look into the webinterface and look at the assigned roles it’s empty.
What is the working API call for this? I cannot get it done somehow.