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.
On Thursday, August 17, 2017 at 6:57:14 AM UTC+5:30, Justin Ren wrote:
>
> 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
>
--
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/750b4038-2704-4373-9792-dba501cd2b09%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.