ansible.cfg 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. # Uncomment to use the provided example inventory
  27. inventory = hosts.sh
  28. [inventory]
  29. # fail more helpfully when the inventory file does not parse (Ansible 2.4+)
  30. unparsed_is_failed=true
  31. # Additional ssh options for OpenShift Ansible
  32. [ssh_connection]
  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