daily pastebin goal
85%
SHARE
TWEET

Untitled

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