Commit fe5ab64b by Michael DeHaan

Document lookup plugin shorthand

parent 78ecc45d
...@@ -429,8 +429,8 @@ If you have a list of hashes, you can reference subkeys using things like:: ...@@ -429,8 +429,8 @@ If you have a list of hashes, you can reference subkeys using things like::
${item.subKeyName} ${item.subKeyName}
More Loops Lookup Plugins - Accessing Outside Data
`````````` ```````````````````````````````````````
.. versionadded: 0.8 .. versionadded: 0.8
...@@ -460,10 +460,11 @@ be used like this:: ...@@ -460,10 +460,11 @@ be used like this::
with_file: with_file:
- /home/foo/.ssh/id_rsa.pub - /home/foo/.ssh/id_rsa.pub
As an alternate (but less preferred) syntax, all lookup plugins can be inlined by uppercasing their name and As an alternative, lookup plugins can also be accessed in variables like so::
prefixing them with a dollar sign, like so::
- action: authorized_key user=foo key=$FILE(/home/foo/.ssh/id_rsa.pub) vars:
motd_value: $FILE(/etc/motd)
hosts_value: $LOOKUP(file,/etc/hosts)
.. versionadded: 0.9 .. versionadded: 0.9
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment