---
- name: testing win_get_url
hosts: all
tasks:
- name: Create Directory if not exist
win_file:
path: c:\temp
state: directory
TASK [Create Directory if not exist] ******************************************************************************************************************************************************************************
task path: /home/tony/windows/download.yml:5
Using module file /usr/lib/python2.7/dist-packages/ansible/modules/windows/win_file.ps1
Pipelining is enabled.
<devsp2016> ESTABLISH WINRM CONNECTION FOR USER: adm-tkw@xxxxon PORT 5986 TO devsp2016
EXEC (via pipeline wrapper)
fatal: [devsp2016]: FAILED! => {
"changed": false,
"msg": "path c:\\temp is not a directory"
any idea why I cannot create the directory?