FYI: you are replying to a mailing list post from last October.
On Tue, Jun 24, 2014 at 2:38 PM, Ben Hoyt <[email protected]> wrote: > 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 [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/300a6f17-ffe8-40bf-b505-020a9fc0ffd1%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/300a6f17-ffe8-40bf-b505-020a9fc0ffd1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnsWgz0WghtT9zwrCqKg8w1vCreUT-%2BEjy%3DQO0U_5Lq0K1oSg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
