Are you suggesting that I should be copying down the modules to the server that I am running the command against? If so why doesn't the examples show this to be the case? ie: copy down modules or at least suggest this is a pre-requisite.
This would also mean that ansible wouldn't be an agentless solution as I would be installing extra components on my fleet of servers. Very frustrated trying to understand how this is all meant to work Thanks for your input. Kez On Thursday, December 3, 2020 at 8:21:20 PM UTC+11 Stu wrote: > That’s a powershell function that is part of the ansible.windows module. > > > > > https://github.com/ansible-collections/ansible.windows/blob/main/plugins/module_utils/WebRequest.psm1 > > > > I’ve not used it myself, but it’s sounding like that module isn’t making > it’s way to your windows server. > > Hope that helps you with a place to start. > > > > Stu > > > > *From:* [email protected] <[email protected]> *On > Behalf Of *Kez Halls > *Sent:* 03 December 2020 07:04 > *To:* Ansible Project <[email protected]> > *Subject:* [ansible-project] working with windows > > > > Hi > > I am a windows person so no real unix experience. I finally have ansible > installed and have also successfully (I think) installed a plugin with the > below > > ansible-galaxy collection install ansible.windows > > > > When trying to test this script > > - name: Install 7zip from a network share with specific credentials > > ansible.windows.win_get_url: > > path: \\{SERVER}\d$\Software\7-zip\7z1900-x64.exe > > product_id: 7-Zip > > arguments: /S > > state: present > > > > I get > > fatal: [{servername}]: FAILED! => {"changed": false, "msg": "Unhandled > exception while executing module: The term > 'Get-AnsibleWindowsWebRequestSpec' is not recognized as the name of a > cmdlet, function, script file, or operable program. Check the spelling of > the name, or if a path was included, verify that the path is correct and > try again."} > > > > I cannot find anything that states there are powershell re-reqs and do not > even know how to find where this is trying to call it (on the linux server > or on my windows server) > > Any help appreciated. > > > > Thanks > > > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/ae041c3f-6763-43b0-8ec9-979b183296c9n%40googlegroups.com > > <https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgroups.google.com%2Fd%2Fmsgid%2Fansible-project%2Fae041c3f-6763-43b0-8ec9-979b183296c9n%2540googlegroups.com%3Futm_medium%3Demail%26utm_source%3Dfooter&data=04%7C01%7Cstuart.lowe%40zeninternet.co.uk%7C78c719f8f85a4a810dcc08d89759bd35%7Cf553766da74d4c29bbe3ae53a28c11d3%7C1%7C0%7C637425759005815223%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=103VNeAMxgQbXXsbluL03FMIJ%2FPn1Xo7fPGaDZH%2F8Eg%3D&reserved=0> > . > -- > *Stuart Lowe* > Cloud and Hosting Support Engineer > *Zen Internet* > Team: 01706 902009 > Web: zen.co.uk > > Proud to be a certified B Corporation > > This message is private and confidential. If you have received this > message in error, please notify us and remove it from your system. > > Zen Internet Limited may monitor email traffic data to manage billing, to > handle customer enquiries and for the prevention and detection of fraud. We > may also monitor the content of emails sent to and/or from Zen Internet > Limited for the purposes of security, staff training and to monitor quality > of service. > > Zen Internet Limited is registered in England and Wales, Sandbrook Park, > Sandbrook Way, Rochdale, OL11 1RY Company No. 03101568 VAT Reg No. 686 0495 > 01 > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/5814dc79-7091-4fdc-b1c1-322eb4574fb6n%40googlegroups.com.
