On 01.10.21 23:11, [email protected] wrote:
We build a stream file to map the interfaces of all the hosts and then trigger
traffic on respective hosts participating. This stream file is around 100 MB.
So just this line in one of the playbook:
vars_files:
- "{{ playbook_dir }}/{{ streams_file_name }}"
Is taking almost 1-2 hrs of time to run.
I believe there are other vars plugins that you can use? They may work better
than the files module. Or write your own.
https://docs.ansible.com/ansible/latest/plugins/vars.html
Alternatively, instead of using vars plugins, you maybe able to use lookup
plugins for fetching data, and use faster stores to randomly access data
instead of loading it all into memory at the beginning.
- Sandip
--
https://blog.sandipb.net
https://twitter.com/sandipb
--
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 view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/eb7746cf-2aff-f132-aeb0-63ae81edceba%40showmethesource.org.