ansible.cfg 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # config file for ansible -- http://ansible.com/
  2. # ==============================================
  3. # This config file provides examples for running
  4. # the OpenShift playbooks with the provided
  5. # inventory scripts.
  6. [defaults]
  7. # Set the log_path
  8. log_path = ~/openshift-ansible.log
  9. # Additional default options for OpenShift Ansible
  10. forks = 20
  11. host_key_checking = False
  12. retry_files_enabled = False
  13. retry_files_save_path = ~/ansible-installer-retries
  14. nocows = True
  15. remote_user = root
  16. roles_path = roles/
  17. gathering = smart
  18. fact_caching = jsonfile
  19. fact_caching_connection = $HOME/ansible/facts
  20. fact_caching_timeout = 600
  21. callback_whitelist = profile_tasks
  22. inventory_ignore_extensions = secrets.py, .pyc, .cfg, .crt, .ini
  23. # work around privilege escalation timeouts in ansible:
  24. timeout = 30
  25. # Uncomment to use the provided example inventory
  26. #inventory = inventory/hosts.example
  27. [inventory]
  28. # fail more helpfully when the inventory file does not parse (Ansible 2.4+)
  29. unparsed_is_failed=true
  30. # Additional ssh options for OpenShift Ansible
  31. [ssh_connection]
  32. retries = 15
  33. pipelining = True
  34. ssh_args = -o ControlMaster=auto -o ControlPersist=600s
  35. timeout = 10
  36. # shorten the ControlPath which is often too long; when it is,
  37. # ssh connection reuse silently fails, making everything slower.
  38. control_path = %(directory)s/%%h-%%r