# Receiving facts at localhost using delegate\_to is failing

**URL:** <https://forum.ansible.com/t/receiving-facts-at-localhost-using-delegate-to-is-failing/30934>\
**Category:** Ansible Project\
**Created:** [August 1, 2019, 9:42pm UTC](https://forum.ansible.com/t/receiving-facts-at-localhost-using-delegate-to-is-failing/30934 "2019-08-01T21:42:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gabriel\_Rios](https://avatars.discourse-cdn.com/v4/letter/g/bc79bd/32.png) [@Gabriel\_Rios](https://forum.ansible.com/u/Gabriel_Rios)\
**Post date:** [August 1, 2019, 9:42pm UTC](https://forum.ansible.com/t/receiving-facts-at-localhost-using-delegate-to-is-failing/30934/1 "2019-08-01T21:42:17Z")

</div>

I have managed in the same playbook to generate certain facts and also to go over to my local pc and create the file that will receive them.  
What hasn’t worked is the transfer of said facts. Below you can see what I’m generating in the 1st play, I’m using delegate\_to & delegate\_facts to send the data and in the 2nd play, the last task has to gather those facts to add them to the file.

Am I using “delegate” correctly or do I have to gather the delegated facts differently? Any help would be greatly appreciated
