Hi all

I'm writing an Ansible playbook to capture VM info, specifically the MAC
address and the user permissions, but I'm having issues resolving the user
ID returned by ovirt.ovirt.ovirt_vm_info into something I can use, like
their userid.  ovirt.ovirt.ovirt_vm_info gives me:

    "vm_facts.ovirt_vms[0].permissions[0]": {
        "href":
"/ovirt-engine/api/vms/39e07b2a-4cbe-48d8-9e03-3a903027c2b0/permissions/00000003-0003-0003-0003-0000000002ad",
        "id": "00000003-0003-0003-0003-0000000002ad",
        "role": {
            "href":
"/ovirt-engine/api/roles/00000000-0000-0000-0000-000000000001",
            "id": "00000000-0000-0000-0000-000000000001"
        },
        "user": {
            "href":
"/ovirt-engine/api/users/fdfc627c-d875-11e0-90f0-83df133b58cc",
            "id": "fdfc627c-d875-11e0-90f0-83df133b58cc"
        },
        "vm": {
            "href":
"/ovirt-engine/api/vms/39e07b2a-4cbe-48d8-9e03-3a903027c2b0",
            "id": "39e07b2a-4cbe-48d8-9e03-3a903027c2b0"
        }
    }

I'm looking to get the userid's of the users assigned to this VM with the
"UserRole" role.

Any ideas how I can do this with the ovirt.ovirt ansible collection?

Thanks
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/users@ovirt.org/message/BX7CUQP4MK2APNCOJO26JGQFMWL6FBEG/

Reply via email to