Guest User

Untitled

a guest
Oct 22nd, 2013
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. # config file for ansible -- http://ansibleworks.com/
  2. # ==================================================
  3.  
  4. # nearly all parameters can be overridden in ansible-playbook
  5. # or with command line flags. ansible will read ~/.ansible.cfg,
  6. # ansible.cfg in the current working directory or
  7. # /etc/ansible/ansible.cfg, whichever it finds first
  8.  
  9. [defaults]
  10.  
  11. # some basic default values...
  12.  
  13. hostfile = /etc/ansible/hosts
  14. library = /usr/share/ansible
  15. remote_tmp = $HOME/.ansible/tmp
  16. pattern = *
  17. forks = 5
  18. poll_interval = 15
  19. sudo_user = root
  20. #ask_sudo_pass = True
  21. #ask_pass = True
  22. transport = smart
  23. remote_port = 22
  24.  
  25. # additional paths to search for roles in, colon seperated
  26. #roles_path = /etc/ansible/roles
  27.  
  28. # uncomment this to disable SSH key host checking
  29. host_key_checking = False
  30.  
  31. # change this for alternative sudo implementations
  32. sudo_exe = sudo
  33.  
  34. # what flags to pass to sudo
  35. #sudo_flags = -H
  36.  
  37. # SSH timeout
  38. timeout = 10
  39.  
  40. # default user to use for playbooks if user is not specified
  41. # (/usr/bin/ansible will use current user as default)
  42. remote_user = root
  43.  
  44. # logging is off by default unless this path is defined
  45. # if so defined, consider logrotate
  46. log_path = /var/log/ansible.log
  47.  
  48. # default module name for /usr/bin/ansible
  49. #module_name = command
  50.  
  51. # use this shell for commands executed under sudo
  52. # you may need to change this to bin/bash in rare instances
  53. # if sudo is constrained
  54. #executable = /bin/sh
  55.  
  56. # if inventory variables overlap, does the higher precedence one win
  57. # or are hash values merged together? The default is 'replace' but
  58. # this can also be set to 'merge'.
  59. #hash_behaviour = replace
  60.  
  61. # How to handle variable replacement - as of 1.2, Jinja2 variable syntax is
  62. # preferred, but we still support the old $variable replacement too.
  63. # Turn off ${old_style} variables here if you like.
  64. #legacy_playbook_variables = yes
  65.  
  66. # list any Jinja2 extensions to enable here:
  67. #jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
  68.  
  69. # if set, always use this private key file for authentication, same as
  70. # if passing --private-key to ansible or ansible-playbook
  71. private_key_file = /correct/path/to/key
  72.  
  73. # format of string {{ ansible_managed }} available within Jinja2
  74. # templates indicates to users editing templates files will be replaced.
  75. # replacing {file}, {host} and {uid} and strftime codes with proper values.
  76. ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
  77.  
  78. # by default, ansible-playbook will display "Skipping [host]" if it determines a task
  79. # should not be run on a host. Set this to "False" if you don't want to see these "Skipping"
  80. # messages. NOTE: the task header will still be shown regardless of whether or not the
  81. # task is skipped.
  82. #display_skipped_hosts = True
  83.  
  84. # by default (as of 1.3), Ansible will raise errors when attempting to dereference
  85. # Jinja2 variables that are not set in templates or action lines. Uncomment this line
  86. # to revert the behavior to pre-1.3.
  87. #error_on_undefined_vars = False
  88.  
  89. # set plugin path directories here, seperate with colons
  90. action_plugins = /usr/share/ansible_plugins/action_plugins
  91. callback_plugins = /usr/share/ansible_plugins/callback_plugins
  92. connection_plugins = /usr/share/ansible_plugins/connection_plugins
  93. lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
  94. vars_plugins = /usr/share/ansible_plugins/vars_plugins
  95. filter_plugins = /usr/share/ansible_plugins/filter_plugins
  96.  
  97. # don't like cows? that's unfortunate.
  98. # set to 1 if you don't want cowsay support or export ANSIBLE_NOCOWS=1
  99. #nocows = 1
  100.  
  101. # don't like colors either?
  102. # set to 1 if you don't want colors, or export ANSIBLE_NOCOLOR=1
  103. #nocolor = 1
  104.  
  105. [paramiko_connection]
  106.  
  107. # uncomment this line to cause the paramiko connection plugin to not record new host
  108. # keys encountered. Increases performance on new host additions. Setting works independently of the
  109. # host key checking setting above.
  110. #record_host_keys=False
  111.  
  112. # by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this
  113. # line to disable this behaviour.
  114. #pty=False
  115.  
  116. [ssh_connection]
  117.  
  118. # ssh arguments to use
  119. # Leaving off ControlPersist will result in poor performance, so use
  120. # paramiko on older platforms rather than removing it
  121. #ssh_args = -o ControlMaster=auto -o ControlPersist=60s
  122.  
  123. # The path to use for the ControlPath sockets. This defaults to
  124. # "%(directory)s/ansible-ssh-%%h-%%p-%%r", however on some systems with
  125. # very long hostnames or very long path names (caused by long user names or
  126. # deeply nested home directories) this can exceed the character limit on
  127. # file socket names (108 characters for most platforms). In that case, you
  128. # may wish to shorten the string below.
  129. #
  130. # Example:
  131. # control_path = %(directory)s/%%h-%%r
  132. #control_path = %(directory)s/ansible-ssh-%%h-%%p-%%r
  133.  
  134. # if True, make ansible use scp if the connection type is ssh
  135. # (default is sftp)
  136. #scp_if_ssh = True
  137.  
  138. [accelerate]
  139. accelerate_port = 5099
  140. accelerate_timeout = 30
  141. accelerate_connect_timeout = 5.0
Advertisement
Add Comment
Please, Sign In to add comment