A few ansible settings that I like to have to help speed up the fun....
[defaults] host_key_checking=False pipelining=True forks=100 gathering=smart
host_key_checking: disables host key checking. This will stop the annoying: WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! (On by default since V1.3)
pipelining: this will help speed up ansible significantly by reducing the ssh connections. forks: This increases the number of parallel ssh connections you can have. (BY default this is "A very very conservative number since V1.3") gathering: Speeds up fact checking by cacheing the results (New since V1.6) These settings can be set in any of the following (V1.5+): * ANSIBLE_CONFIG (an environment variable) * ansible.cfg (in the current directory) * .ansible.cfg (in the home directory) * /etc/ansible/ansible.cfg
But I usually just set it in my home directory:
~/.ansible.cfg Resources: https://docs.ansible.com/ansible/intro_configuration.html |
AuthorJames Benson is an IT professional. Archives
August 2022
Categories
All
|