# Run custom lookups in a file a then copy this file to another destination

**URL:** <https://forum.ansible.com/t/run-custom-lookups-in-a-file-a-then-copy-this-file-to-another-destination/21566>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [May 25, 2016, 2:49pm UTC](https://forum.ansible.com/t/run-custom-lookups-in-a-file-a-then-copy-this-file-to-another-destination/21566 "2016-05-25T14:49:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivel](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/sivel/32/1198_2.png) [@sivel](https://forum.ansible.com/u/sivel)\
**Post date:** [May 25, 2016, 2:49pm UTC](https://forum.ansible.com/t/run-custom-lookups-in-a-file-a-then-copy-this-file-to-another-destination/21566/1 "2016-05-25T14:49:23Z")

</div>

Custom lookup should still be invoked using the `lookup` function, something like:

myproperty={{ lookup(‘my\_custom\_lookup’, my\_custom\_var1) }}

And you would need to use the `template` module as a task to get that templating to be run. No need for copy, as template can handle a destination.
