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
If the file path and version doesn't exist, run the executable at path with arguments. <-DOESN'T WORK
If the file path and version do exist, exit task successfully. <-WORKS
ACTUAL RESULTS
TASK [Install git] ***************************************************************************************************************************************************************************************************************************
task path: /usr/home/auser/ansible_windows_certs/windows_certs_pb.yaml:86
redirecting (type: modules) ansible.builtin.win_package to ansible.windows.win_package
Using module file /home/auser/ansible-certs/lib64/python3.6/site-packages/ansible_collections/ansible/windows/plugins/modules/win_package.ps1
Pipelining is enabled.
<my.2012windows.server.example> ESTABLISH WINRM CONNECTION FOR USER: WinAdminUser on PORT 5986 TO my.2012windows.server.example
EXEC (via pipeline wrapper)
The full traceback is:
creates_path must be a file not a directory when creates_version is set
At line:599 char:17
+ throw "creates_path must be a file not a directory when creates_ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (creates_path mu..._version is set:String) [], RuntimeException
+ FullyQualifiedErrorId : creates_path must be a file not a directory when creates_version is set
ScriptStackTrace:
at Get-InstalledStatus, <No file>: line 599
at <ScriptBlock>, <No file>: line 1361
fatal: [my.2012windows.server.example]: FAILED! => {
"changed": false,
"msg": "Unhandled exception while executing module: creates_path must be a file not a directory when creates_version is set"
}
The text was updated successfully, but these errors were encountered:
36roentgen
changed the title
creates_path not a working parameter for programs not already installed
creates_path not a working parameter for programs not already installed program
Jan 11, 2021
SUMMARY
win_package doesn't handle the presence of creates_path and creates_version for hosts where the package is not already installed.
ISSUE TYPE
COMPONENT NAME
win_package
ANSIBLE VERSION
CONFIGURATION
OS / ENVIRONMENT
Target OS is Windows server 2012 R2
STEPS TO REPRODUCE
Pre-populate download location.
Run this task
EXPECTED RESULTS
If the file path and version doesn't exist, run the executable at path with arguments. <-DOESN'T WORK
If the file path and version do exist, exit task successfully. <-WORKS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: