No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ansible.cfg 4.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. # config file for ansible -- http://ansible.github.com
  2. # nearly all parameters can be overridden in ansible-playbook or with command line flags
  3. # ansible will read ~/.ansible.cfg or /etc/ansible/ansible.cfg, whichever it finds first
  4. [defaults]
  5. # location of inventory file, eliminates need to specify -i
  6. inventory = ./inventories/
  7. roles_path = ./roles:./local
  8. #gathering = smart
  9. fact_caching = memory
  10. fact_caching_timeout = 86400
  11. vault_password_file = ./.vault_password
  12. retry_files_enabled = False
  13. # location of ansible library, eliminates need to specify --module-path
  14. # library = /usr/share/ansible
  15. # hash_behaviour = merge
  16. # default module name used in /usr/bin/ansible when -m is not specified
  17. module_name = command
  18. # home directory where temp files are stored on remote systems. Should
  19. # almost always contain $HOME or be a directory writeable by all users
  20. #remote_tmp = $HOME/.ansible/tmp
  21. remote_tmp = /tmp
  22. # the default pattern for ansible-playbooks ("hosts:")
  23. pattern = *
  24. # the default number of forks (parallelism) to be used. Usually you
  25. # can crank this up.
  26. forks=20
  27. # the timeout used by various connection types. Usually this corresponds
  28. # to an SSH timeout
  29. timeout=10
  30. # when using --poll or "poll:" in an ansible playbook, and not specifying
  31. # an explicit poll interval, use this interval
  32. poll_interval=15
  33. # when specifying --sudo to /usr/bin/ansible or "sudo:" in a playbook,
  34. # and not specifying "--sudo-user" or "sudo_user" respectively, sudo
  35. # to this user account
  36. become_user=root
  37. # the following forces ansible to always ask for the sudo password (instead of having
  38. # to add -K to the commandline). Or you can use the environment variable (ANSIBLE_ASK_SUDO_PASS)
  39. #ask_sudo_pass=True
  40. become_ask_pass=True
  41. # the following forces ansible to always ask for the ssh-password (-k)
  42. # can also be set by the environment variable ANSIBLE_ASK_PASS
  43. #ask_pass=True
  44. # connection to use when -c <connection_type> is not specified
  45. #transport=paramiko
  46. transport=ssh
  47. # remote SSH port to be used when --port or "port:" or an equivalent inventory
  48. # variable is not specified.
  49. remote_port=22
  50. # if set, always run /usr/bin/ansible commands as this user, and assume this value
  51. # if "user:" is not set in a playbook. If not set, use the current Unix user
  52. # as the default
  53. remote_user=netfreaks
  54. # if set, always use this private key file for authentication, same as if passing
  55. # --private-key to ansible or ansible-playbook
  56. #private_key_file=/path/to/file
  57. host_key_checking=false
  58. jinja2_extensions=jinja2.ext.do
  59. error_on_undefined_vars=True
  60. # format of string $ansible_managed available within Jinja2 templates, replacing
  61. # {file}, {host} and {uid} with template filename, host and owner respectively.
  62. # The resulting string is passed through strftime(3) so it may contain any
  63. # time-formatting specifiers.
  64. #
  65. # Example: ansible_managed = DONT TOUCH {file}: call {uid} at {host} for changes
  66. ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
  67. # additional plugin paths for non-core plugins
  68. #action_plugins = /usr/share/ansible_plugins/action_plugins
  69. #callback_plugins = /usr/share/ansible_plugins/callback_plugins
  70. #connection_plugins = /usr/share/ansible_plugins/connection_plugins
  71. #lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
  72. #vars_plugins = /usr/share/ansible_plugins/vars_plugins
  73. #callback_whitelist = profile_tasks,grafana_annotations
  74. #callback_whitelist = profile_roles
  75. #allow_world_readable_tmpfiles = True
  76. [paramiko_connection]
  77. # nothing to configure yet
  78. [ssh_connection]
  79. # if uncommented, sets the ansible ssh arguments to the following. Leaving off ControlPersist
  80. # will result in poor performance, so use transport=paramiko on older platforms rather than
  81. # removing it
  82. #ssh_args=-o PasswordAuthentication=no -o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r
  83. ssh_args=-o ControlMaster=auto -o ControlPersist=60s -o ControlPath=/tmp/ansible-ssh-%h-%p-%r
  84. # the following makes ansible use scp if the connection type is ssh (default is sftp)
  85. pipelining=True
  86. scp_if_ssh=True