Re: [ansible-project] error creating a directory

2021-06-24 Thread Rahul Puli
Can you try the one below? --- - hosts: all tasks: - name: Create Directory if not exist win_file: path: c:\temp state: directory On Tue, Jun 22, 2021 at 7:08 AM zil...@gmail.com wrote: > Try c:\\temp as path, like this > > --- > - name: testing win_get_url > hosts: all >

Re: [ansible-project] error creating a directory

2021-06-21 Thread zil...@gmail.com
Try c:\\temp as path, like this --- - name: testing win_get_url hosts: all tasks: - name: Create Directory if not exist win_file: path: c:\\temp state: directory On Sunday, June 28, 2020 at 11:15:45 PM UTC-4 om.nac...@gmail.com wrote: > Run the playbook with the

Re: [ansible-project] error creating a directory

2021-06-21 Thread zil...@gmail.com
Use C:\\temp On Sunday, June 28, 2020 at 11:15:45 PM UTC-4 om.nac...@gmail.com wrote: > Run the playbook with the administrator access or grant required access to > "adm-tkw" to create dir under C:\\. > > > And as per the example on win_file ansible doc >

Re: [ansible-project] error creating a directory

2020-06-28 Thread OM Nachiketa
Run the playbook with the administrator access or grant required access to "adm-tkw" to create dir under C:\\. And as per the example on win_file ansible doc its Temp, not temp. On Sun, Jun 28, 2020 at 11:59 PM Tony

Re: [ansible-project] error creating a directory

2020-06-28 Thread Tony Wong
is it the Capital C? just tied and same error On Sun, Jun 28, 2020 at 11:03 AM Tej Singh Rana wrote: > You have to use --> path: C:\temp > > On Sun, Jun 28, 2020 at 11:20 PM Tony Wong wrote: > >> --- >> - name: testing win_get_url >> hosts: all >> tasks: >> - name: Create Directory if

Re: [ansible-project] error creating a directory

2020-06-28 Thread Tej Singh Rana
You have to use --> path: C:\temp On Sun, Jun 28, 2020 at 11:20 PM Tony Wong 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

[ansible-project] error creating a directory

2020-06-28 Thread Tony Wong
--- - 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]