Ansible.cfg Best Practice

                            

Ansible.cfg is the important parameters to control how Ansible and ansible-playbook behaves.

The following parameters are best practice, please put it to the same folder as ansible.cfg file.


Reference:  

https://www.ansible.com/blog/using-ansible-to-manage-rhel-5-yesterday-today-and-tomorrow

https://docs.ansible.com/ansible/latest/reference_appendices/config.html 


[ssh_connection]
ssh_args = '-o ControlMaster=auto -o ControlPersist=60s  -o ServerAliveInterval=60 -o ServerAliveCountMax=10 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
retries=5
pipelining = True

[defaults]
command_warnings=False
host_key_checking = false
timeout = 60
remote_tmp = /tmp