@@ -172,27 +172,27 @@ List of Behavioral Inventory Parameters
...
@@ -172,27 +172,27 @@ List of Behavioral Inventory Parameters
As aluded to above, setting the following variables controls how ansible interacts with remote hosts. Some we have already
As aluded to above, setting the following variables controls how ansible interacts with remote hosts. Some we have already
mentioned::
mentioned::
ansible_ssh_host
ansible_ssh_host
The name of the host to connect to, if different from the alias you wish to give to it.
The name of the host to connect to, if different from the alias you wish to give to it.
ansible_ssh_port
ansible_ssh_port
The ssh port number, if not 22
The ssh port number, if not 22
ansible_ssh_user
ansible_ssh_user
The default ssh user name to use.
The default ssh user name to use.
ansible_ssh_pass
ansible_ssh_pass
The ssh password to use (this is insecure, we strongly recommend using --ask-pass or SSH keys)
The ssh password to use (this is insecure, we strongly recommend using --ask-pass or SSH keys)
ansible_connection
ansible_connection
Connection type of the host. Candidates are local, ssh or paramiko. The default is paramiko before Ansible 1.2, and 'smart' afterwards which detects whether usage of 'ssh' would be feasible based on whether ControlPersist is supported.
Connection type of the host. Candidates are local, ssh or paramiko. The default is paramiko before Ansible 1.2, and 'smart' afterwards which detects whether usage of 'ssh' would be feasible based on whether ControlPersist is supported.
ansible_ssh_private_key_file
ansible_ssh_private_key_file
Private key file used by ssh. Useful if using multiple keys and you don't want to use SSH agent.
Private key file used by ssh. Useful if using multiple keys and you don't want to use SSH agent.
ansible_python_interpreter
ansible_python_interpreter
The target host python path. This is userful for systems with more
The target host python path. This is userful for systems with more
than one Python or not located at "/usr/bin/python" such as \*BSD, or where /usr/bin/python
than one Python or not located at "/usr/bin/python" such as \*BSD, or where /usr/bin/python
is not a 2.X series Python. We do not use the "/usr/bin/env" mechanism as that requires the remote user's
is not a 2.X series Python. We do not use the "/usr/bin/env" mechanism as that requires the remote user's
path to be set right and also assumes the "python" executable is named python, where the executable might
path to be set right and also assumes the "python" executable is named python, where the executable might
be named something like "python26".
be named something like "python26".
ansible\_\*\_interpreter
ansible\_\*\_interpreter
Works for anything such as ruby or perl and works just like ansible_python_interpreter.
Works for anything such as ruby or perl and works just like ansible_python_interpreter.
This replaces shebang of modules which will run on that host.
This replaces shebang of modules which will run on that host.
@@ -85,8 +85,7 @@ If a required variable has not been set, you can skip or fail using Jinja2's
...
@@ -85,8 +85,7 @@ If a required variable has not been set, you can skip or fail using Jinja2's
This is especially useful in combination with the conditional import of vars
This is especially useful in combination with the conditional import of vars
files (see below).
files (see below).
.. note :: When combining `when` with `with_items`, be aware that the `when` statement is processed separately for each item.
Note that when combining `when` with `with_items` (see :doc:`playbook_loops`), be aware that the `when` statement is processed separately for each item. This is by design::