ansible.cfg 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. # config file for ansible -- https://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 = /etc/ansible/hosts
  11. #library = /usr/share/my_modules/
  12. #module_utils = /usr/share/my_module_utils/
  13. #remote_tmp = ~/.ansible/tmp
  14. #local_tmp = ~/.ansible/tmp
  15. #forks = 5
  16. #poll_interval = 15
  17. #sudo_user = root
  18. #ask_sudo_pass = True
  19. #ask_pass = True
  20. #transport = smart
  21. #remote_port = 22
  22. #module_lang = C
  23. #module_set_locale = False
  24. # plays will gather facts by default, which contain information about
  25. # the remote system.
  26. #
  27. # smart - gather by default, but don't regather if already gathered
  28. # implicit - gather by default, turn off with gather_facts: False
  29. # explicit - do not gather by default, must say gather_facts: True
  30. gathering = smart
  31. # This only affects the gathering done by a play's gather_facts directive,
  32. # by default gathering retrieves 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. # some hardware related facts are collected
  44. # with a maximum timeout of 10 seconds. This
  45. # option lets you increase or decrease that
  46. # timeout to something more suitable for the
  47. # environment.
  48. # gather_timeout = 10
  49. # additional paths to search for roles in, colon separated
  50. #roles_path = /etc/ansible/roles
  51. # uncomment this to disable SSH key host checking
  52. #host_key_checking = False
  53. # change the default callback
  54. stdout_callback = condensed
  55. # enable additional callbacks
  56. #callback_whitelist = timer, mail
  57. # Determine whether includes in tasks and handlers are "static" by
  58. # default. As of 2.0, includes are dynamic by default. Setting these
  59. # values to True will make includes behave more like they did in the
  60. # 1.x versions.
  61. #task_includes_static = True
  62. #handler_includes_static = True
  63. # Controls if a missing handler for a notification event is an error or a warning
  64. #error_on_missing_handler = True
  65. # change this for alternative sudo implementations
  66. #sudo_exe = sudo
  67. # What flags to pass to sudo
  68. # WARNING: leaving out the defaults might create unexpected behaviours
  69. #sudo_flags = -H -S -n
  70. # SSH timeout
  71. #timeout = 10
  72. # default user to use for playbooks if user is not specified
  73. # (/usr/bin/ansible will use current user as default)
  74. #remote_user = root
  75. # logging is off by default unless this path is defined
  76. # if so defined, consider logrotate
  77. #log_path = /var/log/ansible.log
  78. # default module name for /usr/bin/ansible
  79. #module_name = command
  80. # use this shell for commands executed under sudo
  81. # you may need to change this to bin/bash in rare instances
  82. # if sudo is constrained
  83. #executable = /bin/sh
  84. # if inventory variables overlap, does the higher precedence one win
  85. # or are hash values merged together? The default is 'replace' but
  86. # this can also be set to 'merge'.
  87. #hash_behaviour = replace
  88. # by default, variables from roles will be visible in the global variable
  89. # scope. To prevent this, the following option can be enabled, and only
  90. # tasks and handlers within the role will see the variables there
  91. #private_role_vars = yes
  92. # list any Jinja2 extensions to enable here:
  93. #jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
  94. # if set, always use this private key file for authentication, same as
  95. # if passing --private-key to ansible or ansible-playbook
  96. #private_key_file = /path/to/file
  97. # If set, configures the path to the Vault password file as an alternative to
  98. # specifying --vault-password-file on the command line.
  99. #vault_password_file = /path/to/vault_password_file
  100. # format of string {{ ansible_managed }} available within Jinja2
  101. # templates indicates to users editing templates files will be replaced.
  102. # replacing {file}, {host} and {uid} and strftime codes with proper values.
  103. #ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
  104. # {file}, {host}, {uid}, and the timestamp can all interfere with idempotence
  105. # in some situations so the default is a static string:
  106. #ansible_managed = Ansible managed
  107. # by default, ansible-playbook will display "Skipping [host]" if it determines a task
  108. # should not be run on a host. Set this to "False" if you don't want to see these "Skipping"
  109. # messages. NOTE: the task header will still be shown regardless of whether or not the
  110. # task is skipped.
  111. display_skipped_hosts = False
  112. # by default, if a task in a playbook does not include a name: field then
  113. # ansible-playbook will construct a header that includes the task's action but
  114. # not the task's args. This is a security feature because ansible cannot know
  115. # if the *module* considers an argument to be no_log at the time that the
  116. # header is printed. If your environment doesn't have a problem securing
  117. # stdout from ansible-playbook (or you have manually specified no_log in your
  118. # playbook on all of the tasks where you have secret information) then you can
  119. # safely set this to True to get more informative messages.
  120. #display_args_to_stdout = False
  121. # by default (as of 1.3), Ansible will raise errors when attempting to dereference
  122. # Jinja2 variables that are not set in templates or action lines. Uncomment this line
  123. # to revert the behavior to pre-1.3.
  124. #error_on_undefined_vars = False
  125. # by default (as of 1.6), Ansible may display warnings based on the configuration of the
  126. # system running ansible itself. This may include warnings about 3rd party packages or
  127. # other conditions that should be resolved if possible.
  128. # to disable these warnings, set the following value to False:
  129. #system_warnings = True
  130. # by default (as of 1.4), Ansible may display deprecation warnings for language
  131. # features that should no longer be used and will be removed in future versions.
  132. # to disable these warnings, set the following value to False:
  133. #deprecation_warnings = True
  134. # (as of 1.8), Ansible can optionally warn when usage of the shell and
  135. # command module appear to be simplified by using a default Ansible module
  136. # instead. These warnings can be silenced by adjusting the following
  137. # setting or adding warn=yes or warn=no to the end of the command line
  138. # parameter string. This will for example suggest using the git module
  139. # instead of shelling out to the git command.
  140. # command_warnings = False
  141. # set plugin path directories here, separate with colons
  142. #action_plugins = /usr/share/ansible/plugins/action
  143. #cache_plugins = /usr/share/ansible/plugins/cache
  144. #callback_plugins = /usr/share/ansible/plugins/callback
  145. #connection_plugins = /usr/share/ansible/plugins/connection
  146. #lookup_plugins = /usr/share/ansible/plugins/lookup
  147. #inventory_plugins = /usr/share/ansible/plugins/inventory
  148. #vars_plugins = /usr/share/ansible/plugins/vars
  149. #filter_plugins = /usr/share/ansible/plugins/filter
  150. #test_plugins = /usr/share/ansible/plugins/test
  151. #terminal_plugins = /usr/share/ansible/plugins/terminal
  152. #strategy_plugins = /usr/share/ansible/plugins/strategy
  153. callback_plugins = 3rdparty/kolter-playbooks/3rdparty/ansible-callback-condensed/
  154. # by default, ansible will use the 'linear' strategy but you may want to try
  155. # another one
  156. #strategy = free
  157. # by default callbacks are not loaded for /bin/ansible, enable this if you
  158. # want, for example, a notification or logging callback to also apply to
  159. # /bin/ansible runs
  160. #bin_ansible_callbacks = False
  161. # don't like cows? that's unfortunate.
  162. # set to 1 if you don't want cowsay support or export ANSIBLE_NOCOWS=1
  163. nocows = 1
  164. # set which cowsay stencil you'd like to use by default. When set to 'random',
  165. # a random stencil will be selected for each task. The selection will be filtered
  166. # against the `cow_whitelist` option below.
  167. #cow_selection = default
  168. #cow_selection = random
  169. # when using the 'random' option for cowsay, stencils will be restricted to this list.
  170. # it should be formatted as a comma-separated list with no spaces between names.
  171. # NOTE: line continuations here are for formatting purposes only, as the INI parser
  172. # in python does not support them.
  173. #cow_whitelist=bud-frogs,bunny,cheese,daemon,default,dragon,elephant-in-snake,elephant,eyes,\
  174. # hellokitty,kitty,luke-koala,meow,milk,moofasa,moose,ren,sheep,small,stegosaurus,\
  175. # stimpy,supermilker,three-eyes,turkey,turtle,tux,udder,vader-koala,vader,www
  176. # don't like colors either?
  177. # set to 1 if you don't want colors, or export ANSIBLE_NOCOLOR=1
  178. #nocolor = 1
  179. # if set to a persistent type (not 'memory', for example 'redis') fact values
  180. # from previous runs in Ansible will be stored. This may be useful when
  181. # wanting to use, for example, IP information from one group of servers
  182. # without having to talk to them in the same playbook run to get their
  183. # current IP information.
  184. #fact_caching = memory
  185. # retry files
  186. # When a playbook fails by default a .retry file will be created in ~/
  187. # You can disable this feature by setting retry_files_enabled to False
  188. # and you can change the location of the files by setting retry_files_save_path
  189. #retry_files_enabled = False
  190. #retry_files_save_path = ~/.ansible-retry
  191. # squash actions
  192. # Ansible can optimise actions that call modules with list parameters
  193. # when looping. Instead of calling the module once per with_ item, the
  194. # module is called once with all items at once. Currently this only works
  195. # under limited circumstances, and only with parameters named 'name'.
  196. #squash_actions = apk,apt,dnf,homebrew,pacman,pkgng,yum,zypper
  197. # prevents logging of task data, off by default
  198. #no_log = False
  199. # prevents logging of tasks, but only on the targets, data is still logged on the master/controller
  200. no_target_syslog = True
  201. # controls whether Ansible will raise an error or warning if a task has no
  202. # choice but to create world readable temporary files to execute a module on
  203. # the remote machine. This option is False by default for security. Users may
  204. # turn this on to have behaviour more like Ansible prior to 2.1.x. See
  205. # https://docs.ansible.com/ansible/become.html#becoming-an-unprivileged-user
  206. # for more secure ways to fix this than enabling this option.
  207. #allow_world_readable_tmpfiles = False
  208. # controls the compression level of variables sent to
  209. # worker processes. At the default of 0, no compression
  210. # is used. This value must be an integer from 0 to 9.
  211. var_compression_level = 9
  212. # controls what compression method is used for new-style ansible modules when
  213. # they are sent to the remote system. The compression types depend on having
  214. # support compiled into both the controller's python and the client's python.
  215. # The names should match with the python Zipfile compression types:
  216. # * ZIP_STORED (no compression. available everywhere)
  217. # * ZIP_DEFLATED (uses zlib, the default)
  218. # These values may be set per host via the ansible_module_compression inventory
  219. # variable
  220. module_compression = 'ZIP_DEFLATED'
  221. # This controls the cutoff point (in bytes) on --diff for files
  222. # set to 0 for unlimited (RAM may suffer!).
  223. #max_diff_size = 1048576
  224. # This controls how ansible handles multiple --tags and --skip-tags arguments
  225. # on the CLI. If this is True then multiple arguments are merged together. If
  226. # it is False, then the last specified argument is used and the others are ignored.
  227. #merge_multiple_cli_flags = False
  228. # Controls showing custom stats at the end, off by default
  229. #show_custom_stats = True
  230. # Controls which files to ignore when using a directory as inventory with
  231. # possibly multiple sources (both static and dynamic)
  232. #inventory_ignore_extensions = ~, .orig, .bak, .ini, .cfg, .retry, .pyc, .pyo
  233. # This family of modules use an alternative execution path optimized for network appliances
  234. # only update this setting if you know how this works, otherwise it can break module execution
  235. #network_group_modules=['eos', 'nxos', 'ios', 'iosxr', 'junos', 'vyos']
  236. # When enabled, this option allows lookups (via variables like {{lookup('foo')}} or when used as
  237. # a loop with `with_foo`) to return data that is not marked "unsafe". This means the data may contain
  238. # jinja2 templating language which will be run through the templating engine.
  239. # ENABLING THIS COULD BE A SECURITY RISK
  240. #allow_unsafe_lookups = False
  241. [privilege_escalation]
  242. #become=True
  243. #become_method=sudo
  244. #become_user=root
  245. #become_ask_pass=False
  246. [paramiko_connection]
  247. # uncomment this line to cause the paramiko connection plugin to not record new host
  248. # keys encountered. Increases performance on new host additions. Setting works independently of the
  249. # host key checking setting above.
  250. #record_host_keys=False
  251. # by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this
  252. # line to disable this behaviour.
  253. #pty=False
  254. # paramiko will default to looking for SSH keys initially when trying to
  255. # authenticate to remote devices. This is a problem for some network devices
  256. # that close the connection after a key failure. Uncomment this line to
  257. # disable the Paramiko look for keys function
  258. #look_for_keys = False
  259. # When using persistent connections with Paramiko, the connection runs in a
  260. # background process. If the host doesn't already have a valid SSH key, by
  261. # default Ansible will prompt to add the host key. This will cause connections
  262. # running in background processes to fail. Uncomment this line to have
  263. # Paramiko automatically add host keys.
  264. #host_key_auto_add = True
  265. [ssh_connection]
  266. # ssh arguments to use
  267. # Leaving off ControlPersist will result in poor performance, so use
  268. # paramiko on older platforms rather than removing it, -C controls compression use
  269. #ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s
  270. ssh_args = -C -o ControlMaster=auto -o ControlPersist=60s -o ForwardAgent=yes
  271. # The base directory for the ControlPath sockets.
  272. # This is the "%(directory)s" in the control_path option
  273. #
  274. # Example:
  275. # control_path_dir = /tmp/.ansible/cp
  276. #control_path_dir = ~/.ansible/cp
  277. # The path to use for the ControlPath sockets. This defaults to a hashed string of the hostname,
  278. # port and username (empty string in the config). The hash mitigates a common problem users
  279. # found with long hostames and the conventional %(directory)s/ansible-ssh-%%h-%%p-%%r format.
  280. # In those cases, a "too long for Unix domain socket" ssh error would occur.
  281. #
  282. # Example:
  283. # control_path = %(directory)s/%%h-%%r
  284. #control_path =
  285. # Enabling pipelining reduces the number of SSH operations required to
  286. # execute a module on the remote server. This can result in a significant
  287. # performance improvement when enabled, however when using "sudo:" you must
  288. # first disable 'requiretty' in /etc/sudoers
  289. #
  290. # By default, this option is disabled to preserve compatibility with
  291. # sudoers configurations that have requiretty (the default on many distros).
  292. #
  293. pipelining = True
  294. # Control the mechanism for transferring files (old)
  295. # * smart = try sftp and then try scp [default]
  296. # * True = use scp only
  297. # * False = use sftp only
  298. #scp_if_ssh = smart
  299. # Control the mechanism for transferring files (new)
  300. # If set, this will override the scp_if_ssh option
  301. # * sftp = use sftp to transfer files
  302. # * scp = use scp to transfer files
  303. # * piped = use 'dd' over SSH to transfer files
  304. # * smart = try sftp, scp, and piped, in that order [default]
  305. #transfer_method = smart
  306. # if False, sftp will not use batch mode to transfer files. This may cause some
  307. # types of file transfer failures impossible to catch however, and should
  308. # only be disabled if your sftp version has problems with batch mode
  309. #sftp_batch_mode = False
  310. [persistent_connection]
  311. # Configures the persistent connection timeout value in seconds. This value is
  312. # how long the persistent connection will remain idle before it is destroyed.
  313. # If the connection doesn't receive a request before the timeout value
  314. # expires, the connection is shutdown. The default value is 30 seconds.
  315. connect_timeout = 30
  316. # Configures the persistent connection retries. This value configures the
  317. # number of attempts the ansible-connection will make when trying to connect
  318. # to the local domain socket. The default value is 30.
  319. connect_retries = 30
  320. # Configures the amount of time in seconds to wait between connection attempts
  321. # to the local unix domain socket. This value works in conjunction with the
  322. # connect_retries value to define how long to try to connect to the local
  323. # domain socket when setting up a persistent connection. The default value is
  324. # 1 second.
  325. connect_interval = 1
  326. [accelerate]
  327. #accelerate_port = 5099
  328. #accelerate_timeout = 30
  329. #accelerate_connect_timeout = 5.0
  330. # The daemon timeout is measured in minutes. This time is measured
  331. # from the last activity to the accelerate daemon.
  332. #accelerate_daemon_timeout = 30
  333. # If set to yes, accelerate_multi_key will allow multiple
  334. # private keys to be uploaded to it, though each user must
  335. # have access to the system via SSH to add a new key. The default
  336. # is "no".
  337. #accelerate_multi_key = yes
  338. [selinux]
  339. # file systems that require special treatment when dealing with security context
  340. # the default behaviour that copies the existing context or uses the user default
  341. # needs to be changed to use the file system dependent context.
  342. #special_context_filesystems=nfs,vboxsf,fuse,ramfs,9p
  343. # Set this to yes to allow libvirt_lxc connections to work without SELinux.
  344. #libvirt_lxc_noseclabel = yes
  345. [colors]
  346. #highlight = white
  347. #verbose = blue
  348. #warn = bright purple
  349. #error = red
  350. #debug = dark gray
  351. #deprecate = purple
  352. #skip = cyan
  353. #unreachable = red
  354. #ok = green
  355. changed = bright yellow
  356. diff_add = bright green
  357. diff_remove = bright red
  358. #diff_lines = cyan
  359. [diff]
  360. # Always print diff when running ( same as always running with -D/--diff )
  361. always = yes
  362. # Set how many context lines to show in diff
  363. # context = 3