Of course
The inventory file is just hostnames so i don't think there is a need to 
post it.

# cat group_vars/windows.yml
# it is suggested that these be encrypted with ansible-vault:
# ansible-vault edit group_vars/windows.yml

ansible_user: ansible
#password goes here when you don't want to use -k option.
ansible_password: "PASSWORD_HERE"
ansible_port: 5986
ansible_connection: winrm
ansible_winrm_transport: kerberos
ansible_winrm_scheme: https
ansible_winrm_server_cert_validation: ignore
ansible_winrm_kerberos_delegation: true

# cat vscode.yaml
---
- hosts: windows
tasks:
- name: Install Visual studio Code
win_package:
path: \\some\dfs\path\VSCodeSetup-1.8.1.exe
creates_path: "C:\\Program Files\\Microsoft VS Code\\Code.exe"
arguments: /verysilent
state: present


Thanks.


On Monday, February 5, 2018 at 5:09:51 PM UTC+2, J Hawkesworth wrote:
>
> Can you share your playbook or tasks to reproduce this, the error message 
> here isn't enough on its own to work out what is needed?
>
> Many thanks,
>
> Jon
>
> On Monday, February 5, 2018 at 1:00:24 PM UTC, Jeremie Levy wrote:
>>
>> Thanks Jordan
>> So i have this option activated since the beginning but the double hop is 
>> not resolved.
>> What extra configuration is needed here?
>> <hasgappqba2303> WINRM CLOSE SHELL: 22A19915-A7B0-4AFB-B840-263A9980023A
>> <hasgappqba2302> WINRM RESULT u'<Response code 1, out "", err "Exception 
>> calling "R">'
>> <hasgappqba2302> WINRM STDOUT                                            
>>              
>> <hasgappqba2302> WINRM STDERR Exception calling "Run" with "1" 
>> argument(s): "Exception calling "Invoke" with "0" argument(s): "The running 
>> command                                                                    
>>                                                                             
>>    
>> stopped because the preference variable "ErrorActionPreference" or common 
>> parameter is set to Stop: Access is denied""                                
>>       
>> At line:47 char:5                                                        
>>                                                                             
>>        
>> +     $output = $entrypoint.Run($payload)                                
>>                                                                             
>>        
>> +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                
>>                                                                             
>>        
>>     + CategoryInfo          : NotSpecified: (:) [], 
>> ParentContainsErrorRecordException                                          
>>                             
>>     + FullyQualifiedErrorId : ScriptMethodRuntimeException                
>>                                                                             
>>       
>>                                                                           
>>                                                                             
>>       
>>
>>
>>
>>
>> On Monday, February 5, 2018 at 12:08:16 PM UTC+2, Jordan Borean wrote:
>>>
>>> By default, the Kerberos ticket does not have delegation enabled, you 
>>> can set
>>>
>>> ansible_winrm_kerberos_delegation: True
>>>
>>> in your host vars and Ansible will set the delegation flag required to 
>>> get a kerb ticket with delegation. If this doesn't work you may need to 
>>> configure your AD environment to properly allow it.
>>>
>>> Thanks
>>>
>>> Jordan
>>>
>>

-- 
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/8f0e30a1-45bf-4e94-9163-3c8eeeff4263%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to