Here is a simple playbook test.yml:
---
- hosts: 127.0.0.1
tasks:
- fail:
The execution time in Ansible 1.6.6 is :
[ludovic@dc1-se-ifr-ansible-dev ansible]$ time ansible-playbook -v test.yml
PLAY [127.0.0.1]
**************************************************************
GATHERING FACTS
***************************************************************
ok: [127.0.0.1]
TASK: [fail ]
*****************************************************************
failed: [127.0.0.1] => {"failed": true}
msg: Failed as requested from task
FATAL: all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/home/ludovic/test.retry
127.0.0.1 : ok=1 changed=0 unreachable=0
failed=1
*real 0m4.752suser 0m4.214ssys 0m0.336s*
The same execution in Ansible 1.7.1 is twice longer :
[ludovic@dc1-se-ifr-ansible-dev ansible]$ time ansible-playbook -v test.yml
PLAY [127.0.0.1]
**************************************************************
GATHERING FACTS
***************************************************************
ok: [127.0.0.1]
TASK: [fail ]
*****************************************************************
failed: [127.0.0.1] => {"failed": true}
msg: Failed as requested from task
FATAL: all hosts have already failed -- aborting
PLAY RECAP
********************************************************************
to retry, use: --limit @/home/ludovic/test.retry
127.0.0.1 : ok=1 changed=0 unreachable=0
failed=1
*real 0m9.259suser 0m8.409ssys 0m0.650s*
The main consumption time is before the display of "PLAY [127.0.0.1]
**************************************************************".
Once the load is done, the execution time of facts gathering and the task
is the same.
Has something changed in inventory load or anywhere else that could explain
this?
Thanks,
Ludo
--
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/61ab17be-99db-4e70-a108-926769416408%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.