ansible.cfg 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 = /tmp/ansible.log
  9. private_key_file = $HOME/.ssh/google_compute_engine
  10. # Additional default options for OpenShift Ansible
  11. forks = 50
  12. host_key_checking = False
  13. retry_files_enabled = False
  14. retry_files_save_path = ~/ansible-installer-retries
  15. nocows = True
  16. remote_user = cloud-user
  17. roles_path = ../../../roles/
  18. gathering = smart
  19. fact_caching = jsonfile
  20. fact_caching_connection = $HOME/ansible/facts
  21. fact_caching_timeout = 600
  22. callback_whitelist = profile_tasks
  23. inventory_ignore_extensions = secrets.py, .pyc, .cfg, .crt
  24. # work around privilege escalation timeouts in ansible:
  25. timeout = 30
  26. stdout_callback = yaml
  27. # Uncomment to use the provided example inventory
  28. inventory = hosts.sh
  29. [inventory]
  30. # fail more helpfully when the inventory file does not parse (Ansible 2.4+)
  31. unparsed_is_failed=true
  32. # Additional ssh options for OpenShift Ansible
  33. [ssh_connection]
  34. pipelining = True
  35. ssh_args = -o ControlMaster=auto -o ControlPersist=600s
  36. timeout = 10
  37. # shorten the ControlPath which is often too long; when it is,
  38. # ssh connection reuse silently fails, making everything slower.
  39. control_path = %(directory)s/%%h-%%r