Merge pull request #5268 from mivor/fix-typos
Fix typos in intro_configuration.rst & constants.py
This commit is contained in:
commit
bddaace970
2 changed files with 11 additions and 11 deletions
|
@ -10,10 +10,10 @@ The mechanism for doing this is the "ansible.cfg" file, which is looked for in t
|
||||||
|
|
||||||
* /etc/ansible/ansible.cfg
|
* /etc/ansible/ansible.cfg
|
||||||
* ~/.ansible.cfg
|
* ~/.ansible.cfg
|
||||||
* ansible.cfg (in the playbook directory)
|
* ansible.cfg (in the current directory)
|
||||||
|
|
||||||
If multiple file locations matching the above exist, the last location on the above list is used. Settings in files
|
If multiple file locations matching the above exist, the last location on the above list is used. Settings in files
|
||||||
are not merged together.
|
are not merged together.
|
||||||
|
|
||||||
.. contents::
|
.. contents::
|
||||||
:depth: 2
|
:depth: 2
|
||||||
|
@ -208,7 +208,7 @@ hash_behaviour
|
||||||
==============
|
==============
|
||||||
|
|
||||||
Ansible by default will override variables in specific precedence orders, as described in :doc:`playbooks_variables`. When a variable
|
Ansible by default will override variables in specific precedence orders, as described in :doc:`playbooks_variables`. When a variable
|
||||||
of higher precedence wins, it will replace the other value.
|
of higher precedence wins, it will replace the other value.
|
||||||
|
|
||||||
Some users prefer that variables that are hashes (aka 'dictionaries' in Python terms) are merged together. This setting is called 'merge'. This is not the default behavior and it does not affect variables whose values are scalars (integers, strings) or
|
Some users prefer that variables that are hashes (aka 'dictionaries' in Python terms) are merged together. This setting is called 'merge'. This is not the default behavior and it does not affect variables whose values are scalars (integers, strings) or
|
||||||
arrays. We generally recommend not using this setting unless you think you have an absolute need for it, and playbooks in the
|
arrays. We generally recommend not using this setting unless you think you have an absolute need for it, and playbooks in the
|
||||||
|
@ -319,7 +319,7 @@ nocolor
|
||||||
=======
|
=======
|
||||||
|
|
||||||
By default ansible will try to colorize output to give a better indication of failure and status information.
|
By default ansible will try to colorize output to give a better indication of failure and status information.
|
||||||
If you dislike this behavior you can turn it off by setting 'nocolor' to 0::
|
If you dislike this behavior you can turn it off by setting 'nocolor' to 1::
|
||||||
|
|
||||||
nocolor=0
|
nocolor=0
|
||||||
|
|
||||||
|
@ -385,7 +385,7 @@ remote_tmp
|
||||||
Ansible works by transferring modules to your remote machines, running them, and then cleaning up after itself. In some
|
Ansible works by transferring modules to your remote machines, running them, and then cleaning up after itself. In some
|
||||||
cases, you may not wish to use the default location and would like to change the path. You can do so by altering this
|
cases, you may not wish to use the default location and would like to change the path. You can do so by altering this
|
||||||
setting::
|
setting::
|
||||||
|
|
||||||
remote_tmp = $HOME/.ansible/tmp
|
remote_tmp = $HOME/.ansible/tmp
|
||||||
|
|
||||||
The default is to use a subdirectory of the user's home directory. Ansible will then choose a random directory name
|
The default is to use a subdirectory of the user's home directory. Ansible will then choose a random directory name
|
||||||
|
@ -517,8 +517,8 @@ If set, this will pass a specific set of options to Ansible rather than Ansible'
|
||||||
|
|
||||||
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
|
ssh_args = -o ControlMaster=auto -o ControlPersist=60s
|
||||||
|
|
||||||
In particular, users may wish to raise the ControlPersist time to encourage performance. A value of 30 minutes may
|
In particular, users may wish to raise the ControlPersist time to encourage performance. A value of 30 minutes may
|
||||||
be appropriate.
|
be appropriate.
|
||||||
|
|
||||||
.. _control_path:
|
.. _control_path:
|
||||||
|
|
||||||
|
@ -529,9 +529,9 @@ This is the location to save ControlPath sockets. This defaults to::
|
||||||
|
|
||||||
control_path=%(directory)s/ansible-ssh-%%h-%%p-%%r
|
control_path=%(directory)s/ansible-ssh-%%h-%%p-%%r
|
||||||
|
|
||||||
On some systems with very long hostnames or very long path names (caused by long user names or
|
On some systems with very long hostnames or very long path names (caused by long user names or
|
||||||
deeply nested home directories) this can exceed the character limit on
|
deeply nested home directories) this can exceed the character limit on
|
||||||
file socket names (108 characters for most platforms). In that case, you
|
file socket names (108 characters for most platforms). In that case, you
|
||||||
may wish to shorten the string to something like the below::
|
may wish to shorten the string to something like the below::
|
||||||
|
|
||||||
control_path = %(directory)s/%%h-%%r
|
control_path = %(directory)s/%%h-%%r
|
||||||
|
@ -568,7 +568,7 @@ accelerate_port
|
||||||
.. versionadded:: 1.3
|
.. versionadded:: 1.3
|
||||||
|
|
||||||
This is the port to use for accelerate mode::
|
This is the port to use for accelerate mode::
|
||||||
|
|
||||||
accelerate_port = 5099
|
accelerate_port = 5099
|
||||||
|
|
||||||
.. _accelerate_timeout:
|
.. _accelerate_timeout:
|
||||||
|
|
|
@ -42,7 +42,7 @@ def get_config(p, section, key, env_var, default, boolean=False, integer=False,
|
||||||
return float(value)
|
return float(value)
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def _get_config(p, section, key, env_var, default, boolean=True):
|
def _get_config(p, section, key, env_var, default):
|
||||||
''' helper function for get_config '''
|
''' helper function for get_config '''
|
||||||
if env_var is not None:
|
if env_var is not None:
|
||||||
value = os.environ.get(env_var, None)
|
value = os.environ.get(env_var, None)
|
||||||
|
|
Loading…
Reference in a new issue