On 24 February 2015 at 14:40, Luís Marques <[email protected]> wrote:

> Is it normal for this local ping to take two minutes?
>

Well you are doing a lot more than

ansible localhost -m ping

The tool is doing all the gathering facts which can take some time and the
recap rules.


>
> $ cat hosts
> localhost ansible_connection=local
>
> $ cat test.yml
> ---
> - hosts: localhost
>   tasks:
>   - name: test
>     ping:
>
> $ time ansible-playbook -i hosts test.yml
>
> PLAY [localhost]
> **************************************************************
>
> GATHERING FACTS
> ***************************************************************
> ok: [localhost]
>
> TASK: [test]
> ******************************************************************
> ok: [localhost]
>
> PLAY RECAP
> ********************************************************************
> localhost                  : ok=2    changed=0    unreachable=0
>  failed=0
>
>
> real 2m1.637s
> user 0m0.266s
> sys 0m0.245s
>
> $ uname -a
> Darwin Hostname.local 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22
> 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64
>
>
>
>  --
> 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/4bc422a9-e27b-464b-b640-68c528b0ac7b%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/4bc422a9-e27b-464b-b640-68c528b0ac7b%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Stephen J Smoogen.

-- 
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/CANnLRdg9P8DKmsWZF9frcvzJf1ijGAc%3DsLjXsOTpYLyt-uAQtQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to