Advertisement
Guest User

ansible.cfg

a guest
Feb 20th, 2017
184
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.97 KB | None | 0 0
  1. /etc/ansible# cat ansible.cfg
  2. # config file for ansible -- http://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. library = /usr/share/ansible/
  18. remote_tmp = /tmp
  19. forks = 5
  20. poll_interval = 15
  21. sudo_user = mkakula
  22. ask_sudo_pass = True
  23. ask_pass = True
  24. transport = smart
  25. remote_port = 22
  26. module_lang = C
  27.  
  28. # plays will gather facts by default, which contain information about
  29. # the remote system.
  30. #
  31. # smart - gather by default, but don't regather if already gathered
  32. # implicit - gather by default, turn off with gather_facts: False
  33. # explicit - do not gather by default, must say gather_facts: True
  34. gathering = implicit
  35.  
  36. # additional paths to search for roles in, colon separated
  37. roles_path = /etc/ansible/roles
  38.  
  39. # uncomment this to disable SSH key host checking
  40. host_key_checking = False
  41.  
  42. # change the default callback
  43. #stdout_callback = skippy
  44. # enable additional callbacks
  45. #callback_whitelist = timer, mail
  46.  
  47. # change this for alternative sudo implementations
  48. #sudo_exe = sudo
  49.  
  50. # What flags to pass to sudo
  51. # WARNING: leaving out the defaults might create unexpected behaviours
  52. #sudo_flags = -H -S -n
  53.  
  54. # SSH timeout
  55. timeout = 20
  56.  
  57. # default user to use for playbooks if user is not specified
  58. # (/usr/bin/ansible will use current user as default)
  59. remote_user = mkakula
  60.  
  61. # logging is off by default unless this path is defined
  62. # if so defined, consider logrotate
  63. #log_path = /var/log/ansible.log
  64.  
  65. # default module name for /usr/bin/ansible
  66. module_name = command
  67.  
  68. # use this shell for commands executed under sudo
  69. # you may need to change this to bin/bash in rare instances
  70. # if sudo is constrained
  71. #executable = /bin/sh
  72.  
  73. # if inventory variables overlap, does the higher precedence one win
  74. # or are hash values merged together? The default is 'replace' but
  75. # this can also be set to 'merge'.
  76. #hash_behaviour = replace
  77.  
  78. # by default, variables from roles will be visible in the global variable
  79. # scope. To prevent this, the following option can be enabled, and only
  80. # tasks and handlers within the role will see the variables there
  81. #private_role_vars = yes
  82.  
  83. # list any Jinja2 extensions to enable here:
  84. #jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
  85.  
  86. # if set, always use this private key file for authentication, same as
  87. # if passing --private-key to ansible or ansible-playbook
  88. #private_key_file = /path/to/file
  89.  
  90. # format of string {{ ansible_managed }} available within Jinja2
  91. # templates indicates to users editing templates files will be replaced.
  92. # replacing {file}, {host} and {uid} and strftime codes with proper values.
  93. #ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
  94. # This short version is better used in templates as it won't flag the file as changed every run.
  95. #ansible_managed = Ansible managed: {file} on {host}
  96.  
  97. # by default, ansible-playbook will display "Skipping [host]" if it determines a task
  98. # should not be run on a host. Set this to "False" if you don't want to see these "Skipping"
  99. # messages. NOTE: the task header will still be shown regardless of whether or not the
  100. # task is skipped.
  101. #display_skipped_hosts = True
  102.  
  103. # by default (as of 1.3), Ansible will raise errors when attempting to dereference
  104. # Jinja2 variables that are not set in templates or action lines. Uncomment this line
  105. # to revert the behavior to pre-1.3.
  106. #error_on_undefined_vars = False
  107.  
  108. # by default (as of 1.6), Ansible may display warnings based on the configuration of the
  109. # system running ansible itself. This may include warnings about 3rd party packages or
  110. # other conditions that should be resolved if possible.
  111. # to disable these warnings, set the following value to False:
  112. #system_warnings = True
  113.  
  114. # by default (as of 1.4), Ansible may display deprecation warnings for language
  115. # features that should no longer be used and will be removed in future versions.
  116. # to disable these warnings, set the following value to False:
  117. #deprecation_warnings = True
  118.  
  119. # (as of 1.8), Ansible can optionally warn when usage of the shell and
  120. # command module appear to be simplified by using a default Ansible module
  121. # instead. These warnings can be silenced by adjusting the following
  122. # setting or adding warn=yes or warn=no to the end of the command line
  123. # parameter string. This will for example suggest using the git module
  124. # instead of shelling out to the git command.
  125. # command_warnings = False
  126.  
  127.  
  128. # set plugin path directories here, separate with colons
  129. #action_plugins = /usr/share/ansible/plugins/action
  130. #callback_plugins = /usr/share/ansible/plugins/callback
  131. #connection_plugins = /usr/share/ansible/plugins/connection
  132. #lookup_plugins = /usr/share/ansible/plugins/lookup
  133. #vars_plugins = /usr/share/ansible/plugins/vars
  134. #filter_plugins = /usr/share/ansible/plugins/filter
  135. #test_plugins = /usr/share/ansible/plugins/test
  136.  
  137. # by default callbacks are not loaded for /bin/ansible, enable this if you
  138. # want, for example, a notification or logging callback to also apply to
  139. # /bin/ansible runs
  140. #bin_ansible_callbacks = False
  141.  
  142.  
  143. # don't like cows? that's unfortunate.
  144. # set to 1 if you don't want cowsay support or export ANSIBLE_NOCOWS=1
  145. #nocows = 1
  146.  
  147. # set which cowsay stencil you'd like to use by default. When set to 'random',
  148. # a random stencil will be selected for each task. The selection will be filtered
  149. # against the `cow_whitelist` option below.
  150. #cow_selection = default
  151. #cow_selection = random
  152.  
  153. # when using the 'random' option for cowsay, stencils will be restricted to this list.
  154. # it should be formatted as a comma-separated list with no spaces between names.
  155. # NOTE: line continuations here are for formatting purposes only, as the INI parser
  156. # in python does not support them.
  157. #cow_whitelist=bud-frogs,bunny,cheese,daemon,default,dragon,elephant-in-snake,elephant,eyes,\
  158. # hellokitty,kitty,luke-koala,meow,milk,moofasa,moose,ren,sheep,small,stegosaurus,\
  159. # stimpy,supermilker,three-eyes,turkey,turtle,tux,udder,vader-koala,vader,www
  160.  
  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.  
  165. # if set to a persistent type (not 'memory', for example 'redis') fact values
  166. # from previous runs in Ansible will be stored. This may be useful when
  167. # wanting to use, for example, IP information from one group of servers
  168. # without having to talk to them in the same playbook run to get their
  169. # current IP information.
  170. #fact_caching = memory
  171.  
  172.  
  173. # retry files
  174. # When a playbook fails by default a .retry file will be created in ~/
  175. # You can disable this feature by setting retry_files_enabled to False
  176. # and you can change the location of the files by setting retry_files_save_path
  177.  
  178. #retry_files_enabled = False
  179. #retry_files_save_path = ~/.ansible-retry
  180.  
  181.  
  182. # prevents logging of task data, off by default
  183. #no_log = False
  184.  
  185. # prevents logging of tasks, but only on the targets, data is still logged on the master/controller
  186. #no_target_syslog = False
  187.  
  188. # controls the compression level of variables sent to
  189. # worker processes. At the default of 0, no compression
  190. # is used. This value must be an integer from 0 to 9.
  191. #var_compression_level = 9
  192.  
  193. [privilege_escalation]
  194. #become=True
  195. #become_method=sudo
  196. #become_user=root
  197. #become_ask_pass=False
  198.  
  199. [paramiko_connection]
  200.  
  201. # uncomment this line to cause the paramiko connection plugin to not record new host
  202. # keys encountered. Increases performance on new host additions. Setting works independently of the
  203. # host key checking setting above.
  204. #record_host_keys=False
  205.  
  206. # by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this
  207. # line to disable this behaviour.
  208. #pty=False
  209.  
  210. [ssh_connection]
  211.  
  212. # ssh arguments to use
  213. # Leaving off ControlPersist will result in poor performance, so use
  214. # paramiko on older platforms rather than removing it
  215. #ssh_args = -o ControlMaster=auto -o ControlPersist=60s
  216.  
  217. # The path to use for the ControlPath sockets. This defaults to
  218. # "%(directory)s/ansible-ssh-%%h-%%p-%%r", however on some systems with
  219. # very long hostnames or very long path names (caused by long user names or
  220. # deeply nested home directories) this can exceed the character limit on
  221. # file socket names (108 characters for most platforms). In that case, you
  222. # may wish to shorten the string below.
  223. #
  224. # Example:
  225. # control_path = %(directory)s/%%h-%%r
  226. #control_path = %(directory)s/ansible-ssh-%%h-%%p-%%r
  227.  
  228. # Enabling pipelining reduces the number of SSH operations required to
  229. # execute a module on the remote server. This can result in a significant
  230. # performance improvement when enabled, however when using "sudo:" you must
  231. # first disable 'requiretty' in /etc/sudoers
  232. #
  233. # By default, this option is disabled to preserve compatibility with
  234. # sudoers configurations that have requiretty (the default on many distros).
  235. #
  236. #pipelining = False
  237.  
  238. # if True, make ansible use scp if the connection type is ssh
  239. # (default is sftp)
  240. #scp_if_ssh = True
  241.  
  242. # if False, sftp will not use batch mode to transfer files. This may cause some
  243. # types of file transfer failures impossible to catch however, and should
  244. # only be disabled if your sftp version has problems with batch mode
  245. #sftp_batch_mode = False
  246.  
  247. [accelerate]
  248. #accelerate_port = 5099
  249. #accelerate_timeout = 30
  250. #accelerate_connect_timeout = 5.0
  251.  
  252. # The daemon timeout is measured in minutes. This time is measured
  253. # from the last activity to the accelerate daemon.
  254. #accelerate_daemon_timeout = 30
  255.  
  256. # If set to yes, accelerate_multi_key will allow multiple
  257. # private keys to be uploaded to it, though each user must
  258. # have access to the system via SSH to add a new key. The default
  259. # is "no".
  260. #accelerate_multi_key = yes
  261.  
  262. [selinux]
  263. # file systems that require special treatment when dealing with security context
  264. # the default behaviour that copies the existing context or uses the user default
  265. # needs to be changed to use the file system dependent context.
  266. #special_context_filesystems=nfs,vboxsf,fuse,ramfs
  267.  
  268. [defaults]
  269. # callback_plugins configuration is required for the ARA callback
  270. callback_plugins = $ara_location/plugins/callbacks
  271.  
  272. # action_plugins and library configuration is required for the ara_record and ara_read modules
  273. action_plugins = $ara_location/plugins/actions
  274. library = $ara_location/plugins/modules
  275.  
  276. [defaults]
  277. # This directory is required to store temporary files for Ansible and ARA
  278. local_tmp = /var/www/ara/.ansible/tmp
  279.  
  280. [ara]
  281. # This will default the database and logs location to be inside that directory.
  282. dir = /var/www/ara/.ara
  283. ara_location=$(python -c "import os,ara; print(os.path.dirname(ara.__file__))")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement