# I want to copy my python script which depends on my other python packages to remote node and run this scripts, is it possible?

**URL:** <https://forum.ansible.com/t/i-want-to-copy-my-python-script-which-depends-on-my-other-python-packages-to-remote-node-and-run-this-scripts-is-it-possible/25275>\
**Category:** Ansible Project\
**Created:** [August 17, 2017, 1:27am UTC](https://forum.ansible.com/t/i-want-to-copy-my-python-script-which-depends-on-my-other-python-packages-to-remote-node-and-run-this-scripts-is-it-possible/25275 "2017-08-17T01:27:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Justin\_Ren](https://avatars.discourse-cdn.com/v4/letter/j/f14d63/32.png) [@Justin\_Ren](https://forum.ansible.com/u/Justin_Ren)\
**Post date:** [August 17, 2017, 1:27am UTC](https://forum.ansible.com/t/i-want-to-copy-my-python-script-which-depends-on-my-other-python-packages-to-remote-node-and-run-this-scripts-is-it-possible/25275/1 "2017-08-17T01:27:13Z")

</div>

Hi all,  
I’m new user for ansible, I want to it’s possible?  
Or it’s only possible for module, but it not possible for normal script under files folder?

Thanks,  
Justin

---

<div class="post-metadata">

**Author:** ![Soniya\_panwar](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@Soniya\_panwar](https://forum.ansible.com/u/Soniya_panwar)\
**Post date:** [September 6, 2017, 7:40am UTC](https://forum.ansible.com/t/i-want-to-copy-my-python-script-which-depends-on-my-other-python-packages-to-remote-node-and-run-this-scripts-is-it-possible/25275/2 "2017-09-06T07:40:33Z")

</div>

yes, you can copy your script and other packages to remote nodes and run this script.

> > I want to copy my python script which depends on my other python packages to remote node and run this scripts

> > I want to copy my python script which depends on my other python packages to remote node  
> > You can perform this task by using copy module

- name: copy python script

copy:

src: \<script.sh\>

dest: \</usr/local/sbin/script.sh\>

owner: root

group: root

mode: 0755

And then you can also transfer your packages or you can install them if you don have any.  
After this you can run your script by using command or shell module.
