On Wednesday, 21 November 2018 16:47:34 CET Dimitri Yioulos wrote: > Thanks, Kai. So, am i misinterpreting this line from the documentation?: > > - This module does not require python on the remote system, much like > the raw > <https://docs.ansible.com/ansible/2.7/modules/raw_module.html#raw-module> > module. > > That seems to mean (to me, at least) just what is says, that there's no > need for python to be installed on the Windows systems in which the script > is being executed.
Yes for the module script it self, Python is not required. But if you copy over a Python script to the Windows system and execute it you must have Python installed. Ansible is not magic, it can execute something on remote system that is doesn't support. You use script with a Powershell script, but you still need Powershell installed on the Windows machine to execute it. So the script module only copy the script over(does not require Python) and start the script(does not require Python), but the remote system must support the language you wrote the script with. If the script you wrote is Powershell, you need Powershell install on remote, but the remote don't need Python to use the script module. -- Kai Stian Olstad -- 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/2202405.fqO2LeRfhD%40x1. For more options, visit https://groups.google.com/d/optout.
