From 78ecc45d4d40c524aab8544abc179cf1a504e13f Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 2 Feb 2013 12:02:08 -0500 Subject: [PATCH] Document other syntaxes --- docsite/rst/playbooks2.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docsite/rst/playbooks2.rst b/docsite/rst/playbooks2.rst index 08a69c4174..398ef3c2b9 100644 --- a/docsite/rst/playbooks2.rst +++ b/docsite/rst/playbooks2.rst @@ -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::