[ansible-project] Ansible with Windows Shared Folder

2020-03-31 Thread Jordan Borean
You are probably hitting the double hop issue over The WinRM. See 
https://docs.ansible.com/ansible/latest/user_guide/windows_winrm.html#limitations
 for some workarounds.

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/fc595e89-2f76-4b8f-86d3-c0aa96c615b1%40googlegroups.com.


[ansible-project] Ansible with Windows Shared Folder

2020-03-31 Thread David Foley
Hi,

I'm trying to roll out Microsoft DSC Using the following Playbook to 
install the application

---
- name: 
  hosts: win
  gather_facts: false
  #connection: win
  tasks:
  - name: Install DSC
win_shell: 'Set-DscLocalConfigurationManager -Path \\\DSCSource\AA-DSC\DscMetaConfigs\Approved -Verbose -Force'


  - name: Run Pooling
win_shell: 'Update-DscConfiguration -Wait -Verbose'


  - name: Get DSC
win_shell: 'Get-DscConfigurationStatus -All'



I'm getting the following Error:: When i run it 

fatal: []: FAILED! => {"changed": true, "cmd": "powershell.exe 
-ExecutionPolicy Unrestricted Set-DscLocalConfigurationManager -Path 
\\DSCSource\\AA-DSC\\DscMetaConfigs\\Approved -Verbose 
-Force", "delta": "0:00:02.843573", "end": "2020-03-31 10:21:53.598630", 
"msg": "non-zero return code", "rc": 1, "start": "2020-03-31 
10:21:50.755056", "stderr": "Set-DscLocalConfigurationManager : \\\DSCSource\\AA-DSC\\DscMetaConfigs\\Approved is not a valid 
\r\ndirectory.\r\nAt line:1 char:1\r\n+ Set-DscLocalConfigurationManager 
-Path \\\DSC ...\r\n+ 
~\r\n   
 + CategoryInfo  : NotSpecified: (:) 
[Set-DscLocalConfigurationManager], ArgumentException\r\n+ 
FullyQualifiedErrorId : 
System.ArgumentException,Microsoft.PowerShell.DesiredStateConfiguration.Commands.SetDscL
 
\r\n   ocalConfigurationManagerCommand", "stderr_lines": 
["Set-DscLocalConfigurationManager 
: \\\DSCSource\\AA-DSC\\DscMetaConfigs\\Approved is not a 
valid ", "directory.", "At line:1 char:1", "+ 
Set-DscLocalConfigurationManager -Path \\\DSC ...", "+ 
~", "   
 + CategoryInfo  : NotSpecified: (:) 
[Set-DscLocalConfigurationManager], ArgumentException", "+ 
FullyQualifiedErrorId : 
System.ArgumentException,Microsoft.PowerShell.DesiredStateConfiguration.Commands.SetDscL
 
", "   ocalConfigurationManagerCommand"], "stdout": "", "stdout_lines": []}


-- 
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 ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e944b06a-2b67-453a-83d8-2b17001a05e0%40googlegroups.com.