From 48ee191379b3ae655e382d3ee06244c11e2a5e14 Mon Sep 17 00:00:00 2001 From: Ahmed Kamal Date: Thu, 2 Oct 2014 23:45:46 +0300 Subject: [PATCH] Add one line example for looking up through etcd --- docsite/rst/playbooks_lookups.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docsite/rst/playbooks_lookups.rst b/docsite/rst/playbooks_lookups.rst index 3eb5ebb35cc..429a1a1232b 100644 --- a/docsite/rst/playbooks_lookups.rst +++ b/docsite/rst/playbooks_lookups.rst @@ -125,6 +125,8 @@ Here are some examples:: - debug: msg="{{ lookup('template', './some_template.j2') }} is a value from evaluation of this template" + - debug: msg="{{ lookup('etcd', 'foo') }} is a value from a locally running etcd" + As an alternative you can also assign lookup plugins to variables or use them elsewhere. This macros are evaluated each time they are used in a task (or template)::