# Ansible Exportd Job: Export referenced objects

**URL:** <https://community.datagerry.com/t/ansible-exportd-job-export-referenced-objects/453>\
**Category:** Community Support\
**Created:** [May 5, 2022, 8:23am UTC](https://community.datagerry.com/t/ansible-exportd-job-export-referenced-objects/453 "2022-05-05T08:23:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rooso](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@rooso](https://community.datagerry.com/u/rooso)\
**Post date:** [May 5, 2022, 8:23am UTC](https://community.datagerry.com/t/ansible-exportd-job-export-referenced-objects/453/1 "2022-05-05T08:23:03Z")

</div>

Hi Community,

One more question about referencing and exportd jobs for Ansible.  
But I think it is not Ansible specific, it’s more a generic exportd question.

I have a type server object, which could have been referenced in multiple type disk objects.  
In exportd, I do like to have all field from object server and all fields from referenced disks.

**Type Server**

- Name: demoserver.contoso.local
- OS: Windows Server 2019
- Status: Active

**Type Disks**

- Label: System
- Size: 50
- Driveletter: C
- Server: Reference Field to Server demoserver.contoso.local

**Type Disks**

- Label: Data
- Size: 100
- Driveletter: D
- Server: Reference Field to Server demoserver.contoso.local

Expected exportd result:

```auto
{
   "all":{
      "hosts":[
         "p-vm-rdck-001"
      ]
   },
   "_meta":{
      "hostvars":{
         "p-vm-rdck-001":{
            "status":"active",
            "osname":"Windows Server 2019 Datacenter",
            "inv_disks": [
                {
                    "C": {
                        "size": 50,
                        "label": "system"
                    },
                    "D": {
                        "capacity_gb": 100,
                        "label": "data"
                    }
                }
            ]
         }
      }
   }
}

```

Any advice how to achive this, if it’s possible?

Thanks,  
Oliver

---

<div class="post-metadata">

**Author:** ![sergej.dumler](https://avatars.discourse-cdn.com/v4/letter/s/bb73d2/32.png) [@sergej.dumler](https://community.datagerry.com/u/sergej.dumler)\
**Post date:** [May 9, 2022, 5:16am UTC](https://community.datagerry.com/t/ansible-exportd-job-export-referenced-objects/453/2 "2022-05-09T05:16:16Z")

</div>

Hello @rooso ,

I hope these following entries can help you.

- [Export objects with Exportd](https://community.datagerry.com/t/export-objects-with-exportd/59)

- [Exportd - improvement in the tab "DESTINATIONS" for ExternalSystemCsv](https://community.datagerry.com/t/exportd-improvement-in-the-tab-destinations-for-externalsystemcsv/181)

- [Exportd how to handle it](https://community.datagerry.com/t/exportd-how-to-handle-it/131)

With best regards

DATAGERRY - Team
