You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TASK [basicsystem_checkmk_agent : Install check-mk-agent] ***********************************************************************************************************************************************************************************
task path: /home/SCHEER/a500112/workspace/ansible/Playbooks/roles/basicsystem_checkmk_agent/tasks/Windows.yml:10
Using module file /home/SCHEER/a500112/.ansible/collections/ansible_collections/ansible/windows/plugins/modules/win_package.ps1
Pipelining is enabled.
<10.175.244.50> ESTABLISH WINRM CONNECTION FOR USER: ansibleusr on PORT 5986 TO 10.175.244.50
EXEC (via pipeline wrapper)
The full traceback is:
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.
At line:1295 char:65
+ ... bleModule]::Create($args, $spec, @(Get-AnsibleWindowsWebRequestSpec))
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-AnsibleWindowsWebRequestSpec:String) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : CommandNotFoundException
ScriptStackTrace:
at <ScriptBlock>, <No file>: line 1295
fatal: [10.175.244.50]: 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."
}
Regardless of the type of the answer the result is still the same. You need to use the version of this module included with Ansible 2.9. If you want to use this collection you need Ansible 2.10+, there’s nothing I can do to change that.
SUMMARY
Hi, i'm trying to install a msi package with ansible.windows.win_package and getting an error:
My task:
The error:
ISSUE TYPE
COMPONENT NAME
ansible.windows.win_package
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Server: Ubuntu 18.04
Target: Windows Server 2019
STEPS TO REPRODUCE
EXPECTED RESULTS
I would expect that the msi agent would be installed
ACTUAL RESULTS
Exception thrown
The text was updated successfully, but these errors were encountered: