Advertisement
Guest User

Untitled

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