On Wed, Oct 13, 2021 at 6:55 PM Nathanaël Blanchet via FreeIPA-users <
freeipa-users@lists.fedorahosted.org> wrote:
>
> 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???)
>
I'm not sure if "freeipa collection" is ansible-freeipa, which is developed and
supported by the FreeIPA team, or the Ansible community.general plugins.
Anyway, neither collection has plugins to gather general information about
your setup. In ansible-freeipa here is config, and a few modules that provide
some responses, but none do a "*-find" or "*-show", IIRC.
For ansible-freeipa, if you want, please open an RFE requesting this behavior:
And please, detail your use case.
Rafael
> --
> 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
>
blanchet@abes.fr> _______________________________________________
> FreeIPA-users mailing list --
freeipa-users@lists.fedorahosted.org> To unsubscribe send an email to
freeipa-users-leave@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--
Rafael Guterres Jeffman
Senior Software Engineer
FreeIPA - Red Hat