From 8288e2705136a30157eb91a1ccf4cda9ca9071c1 Mon Sep 17 00:00:00 2001 From: Alejandro Guirao Date: Fri, 18 Sep 2015 14:51:03 +0200 Subject: [PATCH] Update lookups doc with shelvefile example --- docsite/rst/playbooks_lookups.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docsite/rst/playbooks_lookups.rst b/docsite/rst/playbooks_lookups.rst index a7d459c800..0c76f2edc5 100644 --- a/docsite/rst/playbooks_lookups.rst +++ b/docsite/rst/playbooks_lookups.rst @@ -175,6 +175,9 @@ Here are some examples:: - debug: msg="{{ lookup('etcd', 'foo') }} is a value from a locally running etcd" + # shelvefile lookup retrieves a string value corresponding to a key inside a Python shelve file + - debug: msg="{{ lookup('shelvefile', 'file=path_to_some_shelve_file.db key=key_to_retrieve') }} + # The following lookups were added in 1.9 - debug: msg="{{item}}" with_url: