I'm trying to use the file module to set permissions on files that exists.
The manual says that state=file will do so, but I still get an error, "is 
absent, cannot continue".

>From the manual for state: "If file, the file will NOT be created if it 
does not exist"

Is this how it is supposed to work?

ansible 1.9.4, debian sid


file: path={{item}} mode=0664 owner=xxx group=yyy state=file
with_items:
- logfile1
- logfile2 ...

-- 
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/8360a938-5438-4916-a033-9cf1052d4e2b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to