Directory.

On Tuesday, November 17, 2015 at 9:21:51 AM UTC+11, Tim Fletcher wrote:
>
> On 16/11/15 07:06, Igor Cicimov wrote: 
> > Hi all, 
> > 
> > Currently a task like this: 
> > 
> > file: path=/data state=directory owner=root group=root mode=0755 
> > 
> > fails with the following error: 
> > 
> > failed: [localhost] => {"failed": true, "parsed": false} 
> > BECOME-SUCCESS-pquapqcakqrmffxonpxknqbulycqfmls 
> > Traceback (most recent call last): 
> >   File 
> > "/root/.ansible/tmp/ansible-tmp-1447656411.96-95869428580440/file", line 
> > 2012, in <module> 
> >     main() 
> >   File 
> > "/root/.ansible/tmp/ansible-tmp-1447656411.96-95869428580440/file", line 
> > 279, in main 
> >     os.mkdir(curpath) 
> > OSError: [Errno 17] File exists: '/data' 
> > 
> > on Ansible 1.9.4. Doesn't it make more sense for the task to continue 
> > and just set the permissions instead of failing when the directory 
> > already exists? 
>
> Is it a directory or a file? 
>
> I have come across this error when a file existed which I requested be a 
> 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 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/f94c3e62-0cb2-40f3-a446-300af23c9d01%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to