From 070af51370c025a5e51449cd417d13532be0338f Mon Sep 17 00:00:00 2001 From: Sven-Hendrik Haase Date: Mon, 23 May 2016 15:36:45 +0200 Subject: [PATCH] Update for preferred syntax (#15945) --- docsite/rst/playbooks_conditionals.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docsite/rst/playbooks_conditionals.rst b/docsite/rst/playbooks_conditionals.rst index f66f2a89c7d..21dd5ca6d22 100644 --- a/docsite/rst/playbooks_conditionals.rst +++ b/docsite/rst/playbooks_conditionals.rst @@ -268,8 +268,8 @@ fields:: - name: add home dirs to the backup spooler file: path=/mnt/bkspool/{{ item }} src=/home/{{ item }} state=link - with_items: home_dirs.stdout_lines - # same as with_items: home_dirs.stdout.split() + with_items: "{{ home_dirs.stdout_lines }}" + # same as with_items: "{{ home_dirs.stdout.split() }}" As shown previously, the registered variable's string contents are accessible with the 'stdout' value. You may check the registered variable's string contents for emptiness::