is it the Capital C? just tied and same error
On Sun, Jun 28, 2020 at 11:03 AM Tej Singh Rana <[email protected]> wrote: > You have to use --> path: C:\temp > > On Sun, Jun 28, 2020 at 11:20 PM Tony Wong <[email protected]> wrote: > >> --- >> - 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? >> >> -- >> 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 view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/CALmkhkpu7K4k0u27d3kXtNtAziRfXztXKM8e%3DggoqwhaShCtuw%40mail.gmail.com >> <https://groups.google.com/d/msgid/ansible-project/CALmkhkpu7K4k0u27d3kXtNtAziRfXztXKM8e%3DggoqwhaShCtuw%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CADBoQTrs%3DQDJfYNhUaxgc%3D3SfGktW07qTWCRguYEr5UFemDV4w%40mail.gmail.com > <https://groups.google.com/d/msgid/ansible-project/CADBoQTrs%3DQDJfYNhUaxgc%3D3SfGktW07qTWCRguYEr5UFemDV4w%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CALmkhkrHp2B%2BgytHxQv7EZjzcU7P8vubzxRWxZw9vOq182jXLg%40mail.gmail.com.
