My playbook is broken since i upgraded to v2.5

Here is the simplest example i have:

The code from my playbook:
- name: Install Winzip Package
  win_shell: 'cmd /C C:\Users\ansible\Downloads\install_winzip.cmd'
  args:
    creates: 'C:\Program Files\WinZip\WINZIP64.EXE'


Here is the output:
TASK [common : Install Winzip Package] 
*****************************************************************************************************************************************************
task path: /ansible/scripts/roles/common/tasks/winzip.yml:11                
                                                                            
                  
Using module file 
/usr/lib/python2.7/dist-packages/ansible/modules/windows/win_shell.ps1      
                                                                            
                  
<hasgqba011.DOMAIN> ESTABLISH WINRM CONNECTION FOR USER: ansible@DOMAIN on 
PORT 5986 TO hasgqba011.DOMAIN                                           
checking if winrm_host hasgqba011.DOMAIN is an IPv6 address                
                                                                            
                         
creating Kerberos CC at /tmp/tmpg3ejrJ                                      
                                                                            
                                    
calling kinit with subprocess for principal ansible@DOMAIN                  
                                                                            
                    
kinit succeeded for principal ansible@DOMAIN                                
                                                                            
                    
<hasgqba011.DOMAIN> WINRM CONNECT: transport=kerberos 
endpoint=https://hasgqba011.DOMAIN:5986/wsman                              
                                   
<hasgqba011.DOMAIN> WINRM OPEN SHELL: CCE2248A-9096-4242-B51C-9A1911DBBEE9  
                                                                            
                        
EXEC (via pipeline wrapper)                                                
                                                                            
                                     
<hasgqba011.DOMAIN> WINRM EXEC 'PowerShell' ['-NoProfile', 
'-NonInteractive', '-ExecutionPolicy', 'Unrestricted', '-']                
                                          
<hasgqba011.DOMAIN> WINRM RESULT u'<Response code 1, out "", err 
"Test-AnsiblePath : E">'                                                    
                                   
<hasgqba011.DOMAIN> WINRM CLOSE SHELL: 
CCE2248A-9096-4242-B51C-9A1911DBBEE9                                        
                                                             
fatal: [hasgqba011.DOMAIN]: FAILED! => {                                    
                                                                            
                        
    "changed": false,                                                      
                                                                            
                                     
    "module_stderr": "Test-AnsiblePath : Exception calling 
\"GetAttributes\" with \"1\" argument(s): \"Could not find a part of the 
path \r\n'C:\\Program Files\\WinZip\\WINZIP64.EXE'.\"\r\nAt line:59 
char:21\r\n+ if ($creates -and $(Test-AnsiblePath -Path $creates)) {\r\n+  
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n    + CategoryInfo    
      : NotSpecified: (:) [Test-AnsiblePath], 
MethodInvocationException\r\n    + FullyQualifiedErrorId : 
DirectoryNotFoundException,Test-AnsiblePath\r\n \r\n\r\n",                  
                                
    "module_stdout": "",                                                    
                                                                            
                                    
    "msg": "MODULE FAILURE",                                                
                                                                            
                                    
    "rc": 1                                                                
                                                                            
                                     
}                                                                          
                              

I want to install winzip if the file winzip64.exe is not found, and it 
fails because it's not found.
Removing the args/creates lines --> works like a charm.

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 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/0a363c6b-3c50-4a43-9352-1c56b83cef26%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to