On Wed, Nov 5, 2014 at 2:50 PM, Greg Andrews <[email protected]> wrote: > > Toshio Kuratomi <[email protected]> wrote: >> >> If I have >> only one line in my /etc/hosts file: >> >> 127.0.0.1 localhost >> >> Running: time ansible all -i "localhost," -m setup -c local >> >> takes anywhere from 0.9 seconds to 15 seconds. >> >> Adding a second line to /etc/hosts: >> 127.0.0.1 roan.lan >> >> brings runtime into the 0.3 to 0.7 second range. > > > > If I read between the lines correctly, the faster operation happens when > youe add that line to /etc/hosts on your Ansible machine, not all the target > machines. > Correct but: we're only specifying localhost in the inventory so in this particular example, it's also on "all target machines". Probably would need to do more involved testing before drawing a conclusion of whether this is happening due to the /etc/hosts on the managing machine or the managed machine.
-Toshio -- 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/CAG9juEqXgzTi%3DGLP2EmH7K6fmw-Dfw7jLqGS1WR_Y%2BbktV972w%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
