If using an Ansible checkout from the devel branch, the raw module should just work for PowerShell snippets. See examples in the integration tests ( https://github.com/ansible/ansible/blob/devel/test/integration/roles/test_win_raw/tasks/main.yml#L75 ).
In 1.9.x, you may have to prefix your command with "PowerShell -Command" for it to work. On Wed, Sep 16, 2015 at 12:11 AM, breatheoften <[email protected]> wrote: > Nevermind -- not sure where I remember seeing reference to running > powershell snippets via raw: -- but I certainly can't find it again ... > > It sure would be a nice feature ... -- I've found that even on the unix > side, it is frequently a 'very-fast-value-add' proposition to quickly > rewrite old shell scripts into a work-alike sequence of equivalent ansible > shell tasks (interspersed with other ansible modules where appropriate). > This often yields quick and fast readability/reliability wins and much of > the time yields instant improvements in the quality of the execution > environment for that particular piece of automation ... Was hoping to do > the same thing with some powershell scripts but the raw: execution module > doesn't support powershell snippets. > > -- > 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/5f71cc72-9fbc-4dd5-b8ea-beb2d5e1fc48%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/5f71cc72-9fbc-4dd5-b8ea-beb2d5e1fc48%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 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/CAH%2BKTJ51Bjc-iUvz0JEuNp2Pv3UJn2DhdBBe3trnajOA1GiSbQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
