There is no requirement that all windows modules must be run via the script
module.

Just as the *nix modules are written in Python, the Windows modules are
written in powershell.

I'm not sure if you are familiar with how the Python modules work, but they
are shipped to the remote node and executed.  This is the same way as the
Windows powershell modules. The only difference is that windows modules
must contain both a ps1 (powershell) file and a py (Python) file.  The py
files contains the docs for the module.

I may have misunderstood what you meant, but written the way you mention,
it doesn't sound correct.

On Monday, December 15, 2014, Jonathan Anderson <
[email protected]> wrote:

> Thanks, that's good to know.
>
> Would it be worth the effort to add something like, "Modules for remote
> nodes running on Windows must be written as powershell scripts and be run
> with the ansible "script" module through Windows powershell remoting." or
> something like that in the documentation?  It seems like it would fit
> nicely here <http://docs.ansible.com/list_of_windows_modules.html>and/or
> here
> <http://docs.ansible.com/intro_windows.html#what-modules-are-available>?
> That information maybe documented elsewhere but if so I missed it.  Just a
> thought.
>
> Jonathan
>
> On Thu, Dec 11, 2014 at 7:01 PM, Michael DeHaan <[email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>>
>> They are required to be in powershell (unfortunately for those that don't
>> like Powershell!  maybe fortunate for those that do - as it does provide a
>> very strong 'standard library' of stuff to do on Windows that Microsoft
>> maintains for us - so ... that's a win).   This is so we don't have to
>> install any agents on the remote machines, and they work using Windows
>> powershell remoting.
>>
>>
>>
>> On Thu, Dec 11, 2014 at 5:43 PM, skinnedknuckles <
>> [email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:
>>>
>>> Are modules intended to run on windows remote nodes required to be
>>> written in powershell script or is there a way to turn python code into a
>>> "windows" module?
>>>
>>> --
>>> 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]
>>> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
>>> .
>>> To post to this group, send email to [email protected]
>>> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/aa18830a-30d9-483e-b446-e0562491ddd7%40googlegroups.com
>>> <https://groups.google.com/d/msgid/ansible-project/aa18830a-30d9-483e-b446-e0562491ddd7%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/ansible-project/hoD6YHH3Ppw/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected]
>> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
>> .
>> To post to this group, send email to [email protected]
>> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgymdeL-_%2BiVSDitRULqVEb2k4LH_Ds-RWpbGcTDFk6FrA%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgymdeL-_%2BiVSDitRULqVEb2k4LH_Ds-RWpbGcTDFk6FrA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> 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]
> <javascript:_e(%7B%7D,'cvml','ansible-project%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/CAC-wQgHvZsvJTtk0e_th16QzmLZfOY34CAYOEuDzRdiX-gOJ%3DA%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAC-wQgHvZsvJTtk0e_th16QzmLZfOY34CAYOEuDzRdiX-gOJ%3DA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Matt Martz
@sivel
sivel.net

-- 
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/CAD8N0v9-QHwYdR4tjUQS1S3Jt9f%2BzMTrycPC94TfqxaY-23_XA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to