Advertisement
Guest User

Untitled

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