On 24 February 2015 at 17:09, Luís Marques <[email protected]> wrote:
> On Wednesday, February 25, 2015 at 12:01:30 AM UTC, Smooge wrote: >> >> 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. >> > > OK. I created this scenario to isolate the issue. But consider my actual > scenario: I want to use the digitalocean module to create a droplet or to > ensure it already exists. Something that would normally take about a second > (if it already exists) with an ansible playbook would take two minutes. Is > that the best I can do with Ansible? Am I doing something wrong? > I think you are jumping to conclusions from way too little data :) Here is what happens doing exactly what you did on a CentOS-7 box running on a Intel Core Duo from 2009. [root@shizuku ~]# 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 0m1.347s user 0m0.705s sys 0m0.465s tested this with 2 other systems that are even slower and they are all at 1.2 -> 1.5 seconds. So something is wrong on your setup.. what version of ansible are you using? > -- > 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/8b106a0a-41e9-440f-bf33-ccda36643b9f%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/8b106a0a-41e9-440f-bf33-ccda36643b9f%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/CANnLRdi8Ted86eAsZPwrqrxn7jjfm9fmk-6YFOmLt%2BFTSFGkxw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
