Runs a local script on a remote node after transferring it

33 views
Skip to first unread message

mondher khas

unread,
May 5, 2016, 4:55:19 AM5/5/16
to Ansible Project
hello there , 

I want to execute a python script in the remote machine , haw to do that ? 
for the moment i execute the script which is located in the remote machine using this command :

-shell: python script 

but i want to put this script in the machine in which i installed ansible and run it in the remote machine 

any ideas please ? 
thank you in advance .

Dick Davies

unread,
May 5, 2016, 5:06:35 AM5/5/16
to ansible list
http://docs.ansible.com/ansible/copy_module.html
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/813280ee-7229-460e-a59a-95ab746a6b3b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Brian Coca

unread,
May 5, 2016, 2:37:13 PM5/5/16
to ansible...@googlegroups.com


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages