Johannes Kastl
unread,May 1, 2016, 5:08:21 AM5/1/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ansible...@googlegroups.com
Hi all,
using this snipped creates the directories foo, bar and xyz with the
correct owner.
- name: Create directories
file: dest=/foo/bar/xyz owner=0 group=0 mode=0755 state=directory
recurse=yes
If a directory does exist prior to running the playbook, this
directory is not touched and owner/group different from those state in
the play are not changed.
Is this intentional? Am I missing a parameter apart from recurse=yes?
Thanks in advance,
Johannes
P.S.: I am running ansible 2.0.1.0 on OSX 10.10, target host was a
linux machine.