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.752s
user 0m4.214s
sys 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.259s
user 0m8.409s
sys 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