From aae140e6cd8a2a0326d5da62f5f6858d193b1424 Mon Sep 17 00:00:00 2001 From: murdochr Date: Sat, 20 Jun 2015 21:36:10 +0100 Subject: [PATCH] Change docs to reflect correct when syntax for matching variable strings as per MD's forum post as this fails with unhelpful error otherwise. https://groups.google.com/forum/#!topic/ansible-project/D2hQzZ_jNuM --- lib/ansible/modules/network/basics/uri.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/network/basics/uri.py b/lib/ansible/modules/network/basics/uri.py index a5e233d985d..bb520f1c3dd 100644 --- a/lib/ansible/modules/network/basics/uri.py +++ b/lib/ansible/modules/network/basics/uri.py @@ -155,7 +155,7 @@ EXAMPLES = ''' register: webpage - action: fail - when: 'AWESOME' not in "{{ webpage.content }}" + when: "'illustrative' not in webpage.content" # Create a JIRA issue