User Tools

Site Tools


ansible:ansible_best_practice

This is an old revision of the document!


Ansible best practice

Reference: xavki (youtube)

/etc/ansible/ansible.cfg

[defaults]
host_key_checking = False             # don't ask for accepting ssh keys
callback_whithelist = profile_task    # Print tasks duration
forks = 30                            # Parallel sessions

[ssh_connection]
pipelining = True                     # Send python command to target directly to python interpreter, better for perf

Collect only one time (during one hour) info (gather_cache) on target…os_version…

fact_caching = jsonfile
fact_caching_timeout = 3600
fact_caching_connection = /tmp/myfacts
ansible/ansible_best_practice.1631143508.txt.gz · Last modified: 2021/09/09 01:25 by manu