# Custom module and paths

**URL:** <https://forum.ansible.com/t/custom-module-and-paths/28624>\
**Category:** Ansible Project\
**Created:** [September 21, 2018, 10:31am UTC](https://forum.ansible.com/t/custom-module-and-paths/28624 "2018-09-21T10:31:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![szymon.bienkowski](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@szymon.bienkowski](https://forum.ansible.com/u/szymon.bienkowski)\
**Post date:** [September 21, 2018, 10:31am UTC](https://forum.ansible.com/t/custom-module-and-paths/28624/1 "2018-09-21T10:31:32Z")

</div>

Hi,

I created a custom module for one role that receives path to some files and directories (either relative to the role or to the root playbook).  
How can I get an absolute path to them, so that they can be opened inside the module?  
Module runs locally.
