See if there's a ticket filed and file one would be better, we really don't
bump old threads on this list.

I also don't consider this an issue so much more as a feature request /
enhancement idea, where a pull request that makes it happen would probably
be ideal.

You can also keep using the chown.


On Tue, Jun 24, 2014 at 3:22 PM, Ben Hoyt <[email protected]> wrote:

> Understood -- the intention was to bump this up as it's still an issue
> with Ansible 1.5.5. -Ben
>
>
>
>
> On Tue, Jun 24, 2014 at 3:17 PM, Michael DeHaan <[email protected]>
> wrote:
>
>> 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 a topic in the
>> Google Groups "Ansible Project" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/ansible-project/4PEgOLWfLeo/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, 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
>> <https://groups.google.com/d/msgid/ansible-project/CA%2BnsWgz0WghtT9zwrCqKg8w1vCreUT-%2BEjy%3DQO0U_5Lq0K1oSg%40mail.gmail.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/CAL9jXCHzo3TPdAd1os24GpD9OUSgENPkK1Gumyps10SkiOkUog%40mail.gmail.com
> <https://groups.google.com/d/msgid/ansible-project/CAL9jXCHzo3TPdAd1os24GpD9OUSgENPkK1Gumyps10SkiOkUog%40mail.gmail.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%2BnsWgxJ5%2B1APEuzBe7ORh%3DveGwRAsYUS8fS3V%2B3wFdoDjAw9g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to