ansible.cfg 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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/id_rsa
  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 = ec2-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 = inventory
  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. retries = 15
  35. pipelining = True
  36. ssh_args = -o ControlMaster=auto -o ControlPersist=600s
  37. timeout = 10
  38. # shorten the ControlPath which is often too long; when it is,
  39. # ssh connection reuse silently fails, making everything slower.
  40. control_path = %(directory)s/%%h-%%r