Document: with_file(glob) relative path and roles

Document that with_file and with_fileglob path is relative to
the files directory inside of a role.
pull/3218/head
Lorin Hochstein 12 years ago
parent cf2ddb6f80
commit d7ba2e06eb

@ -438,6 +438,8 @@ inside another.
play are going to get the same tasks. ('*when*' provides some
ability for hosts to conditionally skip tasks).
.. _roles:
Roles
`````

@ -467,6 +467,12 @@ be used like this::
with_file:
- /home/foo/.ssh/id_rsa.pub
.. note::
When using ``with_fileglob`` or ``with_file`` with :ref:`roles`, if you
specify a relative path (e.g., :file:`./foo`), Ansible resolves the path
relative to the :file:`roles/<rolename>/files` directory.
.. versionadded: 0.9
Many new lookup abilities were added in 0.9. Remeber lookup plugins are run on the *controlling* machine::

Loading…
Cancel
Save