doc fix for delegate_to / ansible_host (issue #15546) (#15605)

This commit is contained in:
nikut 2016-04-26 18:18:06 +03:00 committed by Brian Coca
parent 008bde91a8
commit 54440a30c0
2 changed files with 2 additions and 2 deletions

View file

@ -130,6 +130,8 @@ Here is an example::
Note that you must have passphrase-less SSH keys or an ssh-agent configured for this to work, otherwise rsync Note that you must have passphrase-less SSH keys or an ssh-agent configured for this to work, otherwise rsync
will need to ask for a passphrase. will need to ask for a passphrase.
The `ansible_host` variable (`ansible_ssh_host` in 1.x) reflects the host a task is delegated to.
.. _delegate_facts: .. _delegate_facts:
Delegated facts Delegated facts

View file

@ -668,8 +668,6 @@ period, without the rest of the domain.
``play_hosts`` is available as a list of hostnames that are in scope for the current play. This may be useful for filling out templates with multiple hostnames or for injecting the list into the rules for a load balancer. ``play_hosts`` is available as a list of hostnames that are in scope for the current play. This may be useful for filling out templates with multiple hostnames or for injecting the list into the rules for a load balancer.
``delegate_to`` is the inventory hostname of the host that the current task has been delegated to using ``delegate_to`` keyword.
Don't worry about any of this unless you think you need it. You'll know when you do. Don't worry about any of this unless you think you need it. You'll know when you do.
Also available, ``inventory_dir`` is the pathname of the directory holding Ansible's inventory host file, ``inventory_file`` is the pathname and the filename pointing to the Ansible's inventory host file. Also available, ``inventory_dir`` is the pathname of the directory holding Ansible's inventory host file, ``inventory_file`` is the pathname and the filename pointing to the Ansible's inventory host file.