|
@@ -0,0 +1,152 @@
|
|
1
|
+# config file for ansible -- http://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
|
+hostfile = /etc/ansible/hosts
|
|
15
|
+library = /usr/share/ansible
|
|
16
|
+remote_tmp = $HOME/.ansible/tmp
|
|
17
|
+pattern = *
|
|
18
|
+forks = 5
|
|
19
|
+poll_interval = 15
|
|
20
|
+sudo_user = root
|
|
21
|
+#ask_sudo_pass = True
|
|
22
|
+#ask_pass = True
|
|
23
|
+transport = smart
|
|
24
|
+remote_port = 22
|
|
25
|
+
|
|
26
|
+# additional paths to search for roles in, colon seperated
|
|
27
|
+#roles_path = /etc/ansible/roles
|
|
28
|
+
|
|
29
|
+# uncomment this to disable SSH key host checking
|
|
30
|
+#host_key_checking = False
|
|
31
|
+
|
|
32
|
+# change this for alternative sudo implementations
|
|
33
|
+sudo_exe = sudo
|
|
34
|
+
|
|
35
|
+# what flags to pass to sudo
|
|
36
|
+#sudo_flags = -H
|
|
37
|
+
|
|
38
|
+# SSH timeout
|
|
39
|
+timeout = 10
|
|
40
|
+
|
|
41
|
+# default user to use for playbooks if user is not specified
|
|
42
|
+# (/usr/bin/ansible will use current user as default)
|
|
43
|
+#remote_user = root
|
|
44
|
+
|
|
45
|
+# logging is off by default unless this path is defined
|
|
46
|
+# if so defined, consider logrotate
|
|
47
|
+#log_path = /var/log/ansible.log
|
|
48
|
+
|
|
49
|
+# default module name for /usr/bin/ansible
|
|
50
|
+#module_name = command
|
|
51
|
+
|
|
52
|
+# use this shell for commands executed under sudo
|
|
53
|
+# you may need to change this to bin/bash in rare instances
|
|
54
|
+# if sudo is constrained
|
|
55
|
+#executable = /bin/sh
|
|
56
|
+
|
|
57
|
+# if inventory variables overlap, does the higher precedence one win
|
|
58
|
+# or are hash values merged together? The default is 'replace' but
|
|
59
|
+# this can also be set to 'merge'.
|
|
60
|
+#hash_behaviour = replace
|
|
61
|
+
|
|
62
|
+# How to handle variable replacement - as of 1.2, Jinja2 variable syntax is
|
|
63
|
+# preferred, but we still support the old $variable replacement too.
|
|
64
|
+# Turn off ${old_style} variables here if you like.
|
|
65
|
+#legacy_playbook_variables = yes
|
|
66
|
+
|
|
67
|
+# list any Jinja2 extensions to enable here:
|
|
68
|
+#jinja2_extensions = jinja2.ext.do,jinja2.ext.i18n
|
|
69
|
+
|
|
70
|
+# if set, always use this private key file for authentication, same as
|
|
71
|
+# if passing --private-key to ansible or ansible-playbook
|
|
72
|
+#private_key_file = /path/to/file
|
|
73
|
+
|
|
74
|
+# format of string {{ ansible_managed }} available within Jinja2
|
|
75
|
+# templates indicates to users editing templates files will be replaced.
|
|
76
|
+# replacing {file}, {host} and {uid} and strftime codes with proper values.
|
|
77
|
+ansible_managed = Ansible managed: {file} modified on %Y-%m-%d %H:%M:%S by {uid} on {host}
|
|
78
|
+
|
|
79
|
+# by default, ansible-playbook will display "Skipping [host]" if it determines a task
|
|
80
|
+# should not be run on a host. Set this to "False" if you don't want to see these "Skipping"
|
|
81
|
+# messages. NOTE: the task header will still be shown regardless of whether or not the
|
|
82
|
+# task is skipped.
|
|
83
|
+#display_skipped_hosts = True
|
|
84
|
+
|
|
85
|
+# by default (as of 1.3), Ansible will raise errors when attempting to dereference
|
|
86
|
+# Jinja2 variables that are not set in templates or action lines. Uncomment this line
|
|
87
|
+# to revert the behavior to pre-1.3.
|
|
88
|
+#error_on_undefined_vars = False
|
|
89
|
+
|
|
90
|
+# set plugin path directories here, seperate with colons
|
|
91
|
+action_plugins = /usr/share/ansible_plugins/action_plugins
|
|
92
|
+callback_plugins = /usr/share/ansible_plugins/callback_plugins
|
|
93
|
+connection_plugins = /usr/share/ansible_plugins/connection_plugins
|
|
94
|
+lookup_plugins = /usr/share/ansible_plugins/lookup_plugins
|
|
95
|
+vars_plugins = /usr/share/ansible_plugins/vars_plugins
|
|
96
|
+filter_plugins = /usr/share/ansible_plugins/filter_plugins
|
|
97
|
+
|
|
98
|
+# don't like cows? that's unfortunate.
|
|
99
|
+# set to 1 if you don't want cowsay support or export ANSIBLE_NOCOWS=1
|
|
100
|
+#nocows = 1
|
|
101
|
+
|
|
102
|
+# don't like colors either?
|
|
103
|
+# set to 1 if you don't want colors, or export ANSIBLE_NOCOLOR=1
|
|
104
|
+#nocolor = 1
|
|
105
|
+
|
|
106
|
+[paramiko_connection]
|
|
107
|
+
|
|
108
|
+# uncomment this line to cause the paramiko connection plugin to not record new host
|
|
109
|
+# keys encountered. Increases performance on new host additions. Setting works independently of the
|
|
110
|
+# host key checking setting above.
|
|
111
|
+#record_host_keys=False
|
|
112
|
+
|
|
113
|
+# by default, Ansible requests a pseudo-terminal for commands executed under sudo. Uncomment this
|
|
114
|
+# line to disable this behaviour.
|
|
115
|
+#pty=False
|
|
116
|
+
|
|
117
|
+[ssh_connection]
|
|
118
|
+
|
|
119
|
+# ssh arguments to use
|
|
120
|
+# Leaving off ControlPersist will result in poor performance, so use
|
|
121
|
+# paramiko on older platforms rather than removing it
|
|
122
|
+#ssh_args = -o ControlMaster=auto -o ControlPersist=60s
|
|
123
|
+
|
|
124
|
+# The path to use for the ControlPath sockets. This defaults to
|
|
125
|
+# "%(directory)s/ansible-ssh-%%h-%%p-%%r", however on some systems with
|
|
126
|
+# very long hostnames or very long path names (caused by long user names or
|
|
127
|
+# deeply nested home directories) this can exceed the character limit on
|
|
128
|
+# file socket names (108 characters for most platforms). In that case, you
|
|
129
|
+# may wish to shorten the string below.
|
|
130
|
+#
|
|
131
|
+# Example:
|
|
132
|
+# control_path = %(directory)s/%%h-%%r
|
|
133
|
+#control_path = %(directory)s/ansible-ssh-%%h-%%p-%%r
|
|
134
|
+
|
|
135
|
+# Enabling pipelining reduces the number of SSH operations required to
|
|
136
|
+# execute a module on the remote server. This can result in a significant
|
|
137
|
+# performance improvement when enabled, however when using "sudo:" you must
|
|
138
|
+# first disable 'requiretty' in /etc/sudoers
|
|
139
|
+#
|
|
140
|
+# By default, this option is disabled to preserve compatibility with
|
|
141
|
+# sudoers configurations that have requiretty (the default on many distros).
|
|
142
|
+#
|
|
143
|
+#pipelining = False
|
|
144
|
+
|
|
145
|
+# if True, make ansible use scp if the connection type is ssh
|
|
146
|
+# (default is sftp)
|
|
147
|
+#scp_if_ssh = True
|
|
148
|
+
|
|
149
|
+[accelerate]
|
|
150
|
+accelerate_port = 5099
|
|
151
|
+accelerate_timeout = 30
|
|
152
|
+accelerate_connect_timeout = 5.0
|