Commit 48ee1913 by Ahmed Kamal

Add one line example for looking up through etcd

parent 32309e37
...@@ -125,6 +125,8 @@ Here are some examples:: ...@@ -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('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 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 elsewhere. This macros are evaluated each time they are used in a task (or
template):: template)::
......
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