# Integrate ansible-cmdb with ansible AWX

**URL:** <https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [June 9, 2018, 5:27am UTC](https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754 "2018-06-09T05:27:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajesh\_Chowdary\_Sami](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Rajesh\_Chowdary\_Sami](https://forum.ansible.com/u/Rajesh_Chowdary_Sami)\
**Post date:** [June 9, 2018, 5:27am UTC](https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754/1 "2018-06-09T05:27:26Z")

</div>

Hi All,

i’m just new to Ansible, I stuck to create a playbook for setup-gather facts.

My requirement is simple.

Play-book for setup-gatherfacts,  
which should save the facts each inventory-host in ansible server ( some tmp folder)  
i should call those files with ansible-cmdb to create cmdd or shall integrate with ansible-awx

---

<div class="post-metadata">

**Author:** ![Kosala\_Atapattu1](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@Kosala\_Atapattu1](https://forum.ansible.com/u/Kosala_Atapattu1)\
**Post date:** [June 11, 2018, 4:32am UTC](https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754/2 "2018-06-11T04:32:21Z")

</div>

Don’t think it’s possible with any of the modules, but you should be able to do this with a filter plugin.

---

<div class="post-metadata">

**Author:** ![Christopher\_Meyers](https://avatars.discourse-cdn.com/v4/letter/c/3e96dc/32.png) [@Christopher\_Meyers](https://forum.ansible.com/u/Christopher_Meyers)\
**Post date:** [June 11, 2018, 10:27am UTC](https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754/3 "2018-06-11T10:27:40Z")

</div>

Awx has a feature called fact caching that saves the result of fact scans to the database on a per host basis. You can turn it on at the job template. The saved facts are accessible via the API.

---

<div class="post-metadata">

**Author:** ![Rajesh\_Chowdary\_Sami](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Rajesh\_Chowdary\_Sami](https://forum.ansible.com/u/Rajesh_Chowdary_Sami)\
**Post date:** [June 11, 2018, 10:53am UTC](https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754/4 "2018-06-11T10:53:24Z")

</div>

Let me try this and confirm you.

---

<div class="post-metadata">

**Author:** ![Rajesh\_Chowdary\_Sami](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@Rajesh\_Chowdary\_Sami](https://forum.ansible.com/u/Rajesh_Chowdary_Sami)\
**Post date:** [June 11, 2018, 11:26am UTC](https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754/5 "2018-06-11T11:26:01Z")

</div>

Sorry, i was tried something but didn’t workout.

MY Playbook.

---

<div class="post-metadata">

**Author:** ![Stefan\_Coussens](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/stefan_coussens/32/8432_2.png) [@Stefan\_Coussens](https://forum.ansible.com/u/Stefan_Coussens)\
**Post date:** [November 12, 2020, 1:24pm UTC](https://forum.ansible.com/t/integrate-ansible-cmdb-with-ansible-awx/27754/6 "2020-11-12T13:24:34Z")

</div>

Hi,

You can juist delegate the copy task to another server.
