Hello,

I'm used to get informations/facts from any API based product such as ovirt or awx with either a module (ovirt_vm_info ) or either a lookup plugin (awx).

But I can't find anyway to do such a thing with the freeipa collection, except directly calling the API with curl as this

curl  \
         -H referer:https://$HOSTNAME/ipa  \
         -H "Content-Type:application/json" \
         -H "Accept:applicaton/json"\
         --negotiate -u : \
         --cacert /etc/ipa/ca.crt  \
         -d  '{"method":"host_find","params":[[""],{}],"id":0}' \
         -X POST       https://`hostname`/ipa/json  \

My question is to verify if I miss something, and how other users manage to get json objects as variables so as to use them in a full ansible context ( maybe uri module???)

--
Nathanaël Blanchet

Supervision réseau
SIRE
227 avenue Professeur-Jean-Louis-Viala
34193 MONTPELLIER CEDEX 5       
Tél. 33 (0)4 67 54 84 55
Fax  33 (0)4 67 54 84 14
blanc...@abes.fr
_______________________________________________
FreeIPA-users mailing list -- freeipa-users@lists.fedorahosted.org
To unsubscribe send an email to freeipa-users-le...@lists.fedorahosted.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedorahosted.org/archives/list/freeipa-users@lists.fedorahosted.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to