Open 4SH-gaupee opened 11 months ago
Try to limit the fields you select. That allowed me to go from 1 min 30 sec to less than 1 second to pull the inventory.
properties:
- 'name'
- 'guest.ipAddress'
- 'config.name'
- 'config.uuid'
Sorry for the very late reply.
Using theses properties it took 1min instead of 3.
The majority of time seems spent doing inventory parsing.
I've tried, and the problem seems to be the "with_tags" value, the parsing of tags is taking an awful lot of time, when disabled it only took 6 seconds, but then I can't use tags to match hosts :upside_down_face:
SUMMARY
Running a ping playbook against a dynamic inventory of 350 VM is very slow
ISSUE TYPE
COMPONENT NAME
https://docs.ansible.com/ansible/latest/inventory_guide/intro_patterns.html
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
target OS CentOS
STEPS TO REPRODUCE
Run a playbook against a dynamic inventory
EXPECTED RESULTS
The play should run in a timely manner
ACTUAL RESULTS
Play run in 3min just to ping 1 server