Yeah, I'm seeing this same thing -- trying to change the owner of a large (existing) directory recursively is taking 10-20 times as long using the "file" module vs just using chown -R, so I've opted to use the latter in our playbooks.
On Wednesday, September 19, 2012 12:57:17 PM UTC-4, Aleksej Romanov wrote: > > I tried. > > $ cp -r /usr/ /tmp/ &>/dev/null > $ find /tmp/usr | wc -l > 130615 > $ time chgrp -R user /tmp/usr/ > > real 0m0.372s > user 0m0.048s > sys 0m0.320s > $ time ansible -c local -i /tmp/i 127.0.0.1 -m file -a 'path=/tmp/usr \ > group=user state=directory recurse=yes' &>/dev/null > > real 0m7.696s > user 0m5.488s > sys 0m2.192s > > So it is much slower, but still only 7 seconds with quite large directory. > Assuming that one usually would use this for own project's files, not /, > it should be quick enough. > > -- 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 ansible-project+unsubscr...@googlegroups.com. To post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/300a6f17-ffe8-40bf-b505-020a9fc0ffd1%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.