On 24 February 2015 at 17:19, Stephen John Smoogen <[email protected]> wrote:
> > > 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? > > Also run with -vvv option and see if there is a line where it pauses for a while. -- 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/CANnLRdjL_uOh_DE5b3L4701B8ev0e3qo-DOA%2BbCr5%3D_M6zFtng%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
