1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Document other syntaxes

This commit is contained in:
Michael DeHaan 2013-02-02 12:02:08 -05:00
parent 0ae7f996f5
commit 78ecc45d4d

View file

@ -454,6 +454,17 @@ be used like this::
with_fileglob:
- /playbooks/files/fooapp/*
'with_file' loads data in from a file directly::
- action: authorized_key user=foo key=$item
with_file:
- /home/foo/.ssh/id_rsa.pub
As an alternate (but less preferred) syntax, all lookup plugins can be inlined by uppercasing their name and
prefixing them with a dollar sign, like so::
- action: authorized_key user=foo key=$FILE(/home/foo/.ssh/id_rsa.pub)
.. versionadded: 0.9
Many new lookup abilities were added in 0.9. Remeber lookup plugins are run on the "controlling" machine::