Ansible: Boost Task Execution Speed

Improve SSH

[ssh_config]
pipelining = true

Run more tasks parallel

[defaults]
forks = 20

Use the “free” strategy

[defaults]
strategy = free

Disable or cache fact gathering

- name: playbook
gather_facts: false
[defaults]
gathering = explicit
[defaults]
gathering = smart
fact_caching_timeout = 86400
fact_caching = jsonfile
fact_caching_connection = ./ansible_fact_cache

Conclusion

[defaults]
strategy = free
forks = 20
[ssh_config]
pipelining = true
[defaults]
gathering = smart
fact_caching_timeout = 86400
fact_caching = jsonfile
fact_caching_connection = ./ansible_fact_cache

--

--

--

IT Project Manager & Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Explore the possibilities with hundreds of domain extensions — {link} -

The Ninth -The 1st Metaverse game powered by StarkNet.

Incredible VPS for GSA Search Engine Ranker

Copypasta and Web3

Et tu, Patrick?

screenshot of a debugger breakpoint showing where and how the prior database exception was raised

I’ve made a game about responsive images!

Mouse Tweaks Mod 1.16.4-1.16.3-1.15.2 — Minecraft players build tools faster

What is DevOps, It’s Working, Benefits, Tools in Detail

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Sebastian

Sebastian

IT Project Manager & Developer

More from Medium

Ansible Code Layout

Linux Configure Xauthority

View Azure NSG Flow Logs In Powershell

Install Spotify snap in Debian-like systems — Ansible module snap