dot_ansible.cfg 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355
  1. # config file for ansible -- http://ansible.com/
  2. # ==============================================
  3. # nearly all parameters can be overridden in ansible-playbook
  4. # or with command line flags. ansible will read ANSIBLE_CONFIG,
  5. # ansible.cfg in the current working directory, .ansible.cfg in
  6. # the home directory or /etc/ansible/ansible.cfg, whichever it
  7. # finds first
  8. [defaults]
  9. # some basic default values...
  10. inventory = $HOME/.ansible-hosts
  11. #library = /usr/share/my_modules/
  12. #remote_tmp = $HOME/.ansible/tmp
  13. remote_tmp = /tmp
  14. allow_world_readable_tmpfiles = True
  15. #local_tmp = $HOME/.ansible/tmp
  16. forks = 30
  17. #poll_interval = 15
  18. #sudo_user = root
  19. #ask_sudo_pass = True
  20. #ask_pass = True
  21. #transport = smart
  22. #remote_port = 22
  23. #module_lang = C
  24. #module_set_locale = True
  25. # plays will gather facts by default, which contain information about
  26. # the remote system.
  27. #
  28. # smart - gather by default, but don't regather if already gathered
  29. # implicit - gather by default, turn off with gather_facts: False
  30. # explicit - do not gather by default, must say gather_facts: True
  31. gathering = smart
  32. # by default retrieve all facts subsets
  33. # all - gather all subsets
  34. # network - gather min and network facts
  35. # hardware - gather hardware facts (longest facts to retrieve)
  36. # virtual - gather min and virtual facts
  37. # facter - import facts from facter
  38. # ohai - import facts from ohai
  39. # You can combine them using comma (ex: network,virtual)
  40. # You can negate them using ! (ex: !hardware,!facter,!ohai)
  41. # A minimal set of facts is always gathered.
  42. #gather_subset = all
  43. # additional paths to search for roles in, colon separated
  44. #roles_path = /etc/ansible/roles
  45. # uncomment this to disable SSH key host checking
  46. #host_key_checking = False
  47. # change the default callback
  48. # stdout_callback = json
  49. # stdout_callback = json
  50. # enable additional callbacks
  51. #callback_whitelist = timer, mail
  52. # Determine whether includes in tasks and handlers are "static" by
  53. # default. As of 2.0, includes are dynamic by default. Setting these
  54. # values to True will make includes behave more like they did in the
  55. # 1.x versions.
  56. #task_includes_static = True
  57. #handler_includes_static = True
  58. # change this for alternative sudo implementations
  59. #sudo_exe = sudo
  60. # What flags to pass to sudo
  61. # WARNING: leaving out the defaults might create unexpected behaviours
  62. #sudo_flags = -H -S -n
  63. # SSH timeout
  64. timeout = 60
  65. # default user to use for playbooks if user is not specified
  66. # (/usr/bin/ansible will use current user as default)
  67. #remote_user = root
  68. # logging is off by default unless this path is defined
  69. # if so defined, consider logrotate
  70. log_path = ~/.cache/ansible.log
  71. # default module name for /usr/bin/ansible
  72. #module_name = command
  73. # use this shell for commands executed under sudo
  74. # you may need to change this to bin/bash in rare instances
  75. # if sudo is constrained
  76. #executable = /bin/sh
  77. # if inventory variables overlap, does the higher precedence one win
  78. # or are hash values merged together? The default is 'replace' but
  79. # this can also be set to 'merge'.
  80. #hash_behaviour = replace
  81. # by default, variables from roles will be visible in the global variable
  82. # scope. To prevent this, the following option can be enabled, and only
  83. # tasks and handlers within the role will see the variables there
  84. #private_role_vars = yes
  85. # list any Jinja2 extensions to enable here:
  86. #jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
  87. # if set, always use this private key file for authentication, same as
  88. # if passing --private-key to ansible or ansible-playbook
  89. #private_key_file = /path/to/file
  90. # If set, configures the path to the Vault password file as an alternative to
  91. # specifying --vault-password-file on the command line.
  92. #vault_password_file = /path/to/vault_password_file
  93. # format of string {{ ansible_managed }} available within Jinja2
  94. # templates indicates to users editing templates files will be replaced.
  95. # replacing {file}, {host} and {uid} and strftime codes with proper values.
  96. #ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
  97. # This short version is better used in templates as it won't flag the file as changed every run.
  98. #ansible_managed = Ansible managed: {file} on {host}
  99. # by default, ansible-playbook will display "Skipping [host]" if it determines a task
  100. # should not be run on a host. Set this to "False" if you don't want to see these "Skipping"
  101. # messages. NOTE: the task header will still be shown regardless of whether or not the
  102. # task is skipped.
  103. #display_skipped_hosts = True
  104. # by default, if a task in a playbook does not include a name: field then
  105. # ansible-playbook will construct a header that includes the task's action but
  106. # not the task's args. This is a security feature because ansible cannot know
  107. # if the *module* considers an argument to be no_log at the time that the
  108. # header is printed. If your environment doesn't have a problem securing
  109. # stdout from ansible-playbook (or you have manually specified no_log in your
  110. # playbook on all of the tasks where you have secret information) then you can
  111. # safely set this to True to get more informative messages.
  112. #display_args_to_stdout = False
  113. # by default (as of 1.3), Ansible will raise errors when attempting to dereference
  114. # Jinja2 variables that are not set in templates or action lines. Uncomment this line
  115. # to revert the behavior to pre-1.3.
  116. #error_on_undefined_vars = False
  117. # by default (as of 1.6), Ansible may display warnings based on the configuration of the
  118. # system running ansible itself. This may include warnings about 3rd party packages or
  119. # other conditions that should be resolved if possible.
  120. # to disable these warnings, set the following value to False:
  121. #system_warnings = True
  122. # by default (as of 1.4), Ansible may display deprecation warnings for language
  123. # features that should no longer be used and will be removed in future versions.
  124. # to disable these warnings, set the following value to False:
  125. #deprecation_warnings = True
  126. # (as of 1.8), Ansible can optionally warn when usage of the shell and
  127. # command module appear to be simplified by using a default Ansible module
  128. # instead. These warnings can be silenced by adjusting the following
  129. # setting or adding warn=yes or warn=no to the end of the command line
  130. # parameter string. This will for example suggest using the git module
  131. # instead of shelling out to the git command.
  132. # command_warnings = False
  133. # set plugin path directories here, separate with colons
  134. #action_plugins = /usr/share/ansible/plugins/action
  135. #callback_plugins = /usr/share/ansible/plugins/callback
  136. #connection_plugins = /usr/share/ansible/plugins/connection
  137. #lookup_plugins = /usr/share/ansible/plugins/lookup
  138. #vars_plugins = /usr/share/ansible/plugins/vars
  139. #filter_plugins = /usr/share/ansible/plugins/filter
  140. #test_plugins = /usr/share/ansible/plugins/test
  141. #strategy_plugins = /usr/share/ansible/plugins/strategy
  142. # by default callbacks are not loaded for /bin/ansible, enable this if you
  143. # want, for example, a notification or logging callback to also apply to
  144. # /bin/ansible runs
  145. bin_ansible_callbacks = True
  146. # don't like cows? that's unfortunate.
  147. # set to 1 if you don't want cowsay support or export ANSIBLE_NOCOWS=1
  148. #nocows = 1
  149. # set which cowsay stencil you'd like to use by default. When set to 'random',
  150. # a random stencil will be selected for each task. The selection will be filtered
  151. # against the `cow_whitelist` option below.
  152. #cow_selection = default
  153. #cow_selection = random
  154. # when using the 'random' option for cowsay, stencils will be restricted to this list.
  155. # it should be formatted as a comma-separated list with no spaces between names.
  156. # NOTE: line continuations here are for formatting purposes only, as the INI parser
  157. # in python does not support them.
  158. #cow_whitelist=bud-frogs,bunny,cheese,daemon,default,dragon,elephant-in-snake,elephant,eyes,\
  159. # hellokitty,kitty,luke-koala,meow,milk,moofasa,moose,ren,sheep,small,stegosaurus,\
  160. # stimpy,supermilker,three-eyes,turkey,turtle,tux,udder,vader-koala,vader,www
  161. # don't like colors either?
  162. # set to 1 if you don't want colors, or export ANSIBLE_NOCOLOR=1
  163. #nocolor = 1
  164. # if set to a persistent type (not 'memory', for example 'redis') fact values
  165. # from previous runs in Ansible will be stored. This may be useful when
  166. # wanting to use, for example, IP information from one group of servers
  167. # without having to talk to them in the same playbook run to get their
  168. # current IP information.
  169. fact_caching = jsonfile
  170. fact_caching_connection = ~/.cache/ansible
  171. # retry files
  172. # When a playbook fails by default a .retry file will be created in ~/
  173. # You can disable this feature by setting retry_files_enabled to False
  174. # and you can change the location of the files by setting retry_files_save_path
  175. #retry_files_enabled = False
  176. #retry_files_save_path = ~/.ansible-retry
  177. # squash actions
  178. # Ansible can optimise actions that call modules with list parameters
  179. # when looping. Instead of calling the module once per with_ item, the
  180. # module is called once with all items at once. Currently this only works
  181. # under limited circumstances, and only with parameters named 'name'.
  182. #squash_actions = apk,apt,dnf,package,pacman,pkgng,yum,zypper
  183. # prevents logging of task data, off by default
  184. #no_log = False
  185. # prevents logging of tasks, but only on the targets, data is still logged on the master/controller
  186. #no_target_syslog = False
  187. # controls whether Ansible will raise an error or warning if a task has no
  188. # choice but to create world readable temporary files to execute a module on
  189. # the remote machine. This option is False by default for security. Users may
  190. # turn this on to have behaviour more like Ansible prior to 2.1.x. See
  191. # https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user
  192. # for more secure ways to fix this than enabling this option.
  193. #allow_world_readable_tmpfiles = False
  194. # controls the compression level of variables sent to
  195. # worker processes. At the default of 0, no compression
  196. # is used. This value must be an integer from 0 to 9.
  197. #var_compression_level = 9
  198. # controls what compression method is used for new-style ansible modules when
  199. # they are sent to the remote system. The compression types depend on having
  200. # support compiled into both the controller's python and the client's python.
  201. # The names should match with the python Zipfile compression types:
  202. # * ZIP_STORED (no compression. available everywhere)
  203. # * ZIP_DEFLATED (uses zlib, the default)
  204. # These values may be set per host via the ansible_module_compression inventory
  205. # variable
  206. #module_compression = 'ZIP_DEFLATED'
  207. # This controls the cutoff point (in bytes) on --diff for files
  208. # set to 0 for unlimited (RAM may suffer!).
  209. #max_diff_size = 1048576
  210. interpreter_python = auto_silent
  211. [privilege_escalation]
  212. #become=True
  213. #become_method=sudo
  214. #become_user=root
  215. #become_ask_pass=False
  216. [paramiko_connection]
  217. # uncomment this line to cause the paramiko connection plugin to not record new host
  218. # keys encountered. Increases performance on new host additions. Setting works independently of the
  219. # host key checking setting above.
  220. #record_host_keys=False
  221. # by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this
  222. # line to disable this behaviour.
  223. #pty=False
  224. [ssh_connection]
  225. # ssh arguments to use
  226. # Leaving off ControlPersist will result in poor performance, so use
  227. # paramiko on older platforms rather than removing it
  228. # ssh_args = -o ControlMaster=auto -o ControlPersist=yes
  229. ssh_args = -4 -o ControlMaster=auto -o ControlPersist=60s
  230. # The path to use for the ControlPath sockets. This defaults to
  231. # "%(directory)s/ansible-ssh-%%h-%%p-%%r", however on some systems with
  232. # very long hostnames or very long path names (caused by long user names or
  233. # deeply nested home directories) this can exceed the character limit on
  234. # file socket names (108 characters for most platforms). In that case, you
  235. # may wish to shorten the string below.
  236. #
  237. # Example:
  238. # control_path = %(directory)s/%%h-%%r
  239. #control_path = %(directory)s/ansible-ssh-%%h-%%p-%%r
  240. control_path = ~/.ssh/master-%%r@%%h:%%p
  241. # Enabling pipelining reduces the number of SSH operations required to
  242. # execute a module on the remote server. This can result in a significant
  243. # performance improvement when enabled, however when using "sudo:" you must
  244. # first disable 'requiretty' in /etc/sudoers
  245. #
  246. # By default, this option is disabled to preserve compatibility with
  247. # sudoers configurations that have requiretty (the default on many distros).
  248. #
  249. #pipelining = False
  250. pipelining = True
  251. # if True, make ansible use scp if the connection type is ssh
  252. # (default is sftp)
  253. #scp_if_ssh = True
  254. # if False, sftp will not use batch mode to transfer files. This may cause some
  255. # types of file transfer failures impossible to catch however, and should
  256. # only be disabled if your sftp version has problems with batch mode
  257. #sftp_batch_mode = False
  258. [accelerate]
  259. accelerate_port = 5099
  260. accelerate_timeout = 30
  261. accelerate_connect_timeout = 5.0
  262. # The daemon timeout is measured in minutes. This time is measured
  263. # from the last activity to the accelerate daemon.
  264. #accelerate_daemon_timeout = 30
  265. # If set to yes, accelerate_multi_key will allow multiple
  266. # private keys to be uploaded to it, though each user must
  267. # have access to the system via SSH to add a new key. The default
  268. # is "no".
  269. #accelerate_multi_key = yes
  270. [selinux]
  271. # file systems that require special treatment when dealing with security context
  272. # the default behaviour that copies the existing context or uses the user default
  273. # needs to be changed to use the file system dependent context.
  274. #special_context_filesystems=nfs,vboxsf,fuse,ramfs
  275. # Set this to yes to allow libvirt_lxc connections to work without SELinux.
  276. #libvirt_lxc_noseclabel = yes
  277. [colors]
  278. #highlight = white
  279. #verbose = blue
  280. #warn = bright purple
  281. #error = red
  282. #debug = dark gray
  283. #deprecate = purple
  284. #skip = cyan
  285. #unreachable = red
  286. #ok = green
  287. #changed = yellow
  288. #diff_add = green
  289. #diff_remove = red
  290. #diff_lines = cyan