# Execute Python file in remore machines

**URL:** <https://forum.ansible.com/t/execute-python-file-in-remore-machines/22051>\
**Category:** Ansible Project\
**Tags:** fedora\
**Created:** [July 19, 2016, 5:47pm UTC](https://forum.ansible.com/t/execute-python-file-in-remore-machines/22051 "2016-07-19T17:47:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Amrit\_Bhandari](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@Amrit\_Bhandari](https://forum.ansible.com/u/Amrit_Bhandari)\
**Post date:** [July 19, 2016, 5:47pm UTC](https://forum.ansible.com/t/execute-python-file-in-remore-machines/22051/1 "2016-07-19T17:47:39Z")

</div>

Hello everyone,  
I am new to Ansible.I have been trying to execute a Python script in remote nodes however am confused how to do it.I wrote a playbook and tried to execute it however I get some errors.I am using Fedora Linux and Ansible 2.1.0 in a college lab environment and trying to connect 5 nodes.

Here’s my Playbook

# bootstrap.yml

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [July 20, 2016, 3:56pm UTC](https://forum.ansible.com/t/execute-python-file-in-remore-machines/22051/2 "2016-07-20T15:56:15Z")

</div>

The error message clearly state which one,  
"Destination directory /home/test\_user does not exist"

When you are copying file the destination directory need to exist.
