From 060890f3b22934eb94c67b48b9253cfe63766452 Mon Sep 17 00:00:00 2001 From: Joshua Smith Date: Sat, 3 Feb 2018 06:32:11 -0500 Subject: [PATCH] Update example syntax in playbooks_loops.rst. (#35679) --- docs/docsite/rst/playbooks_loops.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/docsite/rst/playbooks_loops.rst b/docs/docsite/rst/playbooks_loops.rst index 18a15ba322..2f8fa0d10f 100644 --- a/docs/docsite/rst/playbooks_loops.rst +++ b/docs/docsite/rst/playbooks_loops.rst @@ -48,10 +48,14 @@ Some plugins like, the yum and apt modules can take lists directly to their opti See each action's documentation for details, for now here is an example:: - name: optimal yum - yum: name={{list_of_packages}} state=present + yum: + name: "{{list_of_packages}}" + state: present - name: non optimal yum, not only slower but might cause issues with interdependencies - yum: name={{item}} state=present + yum: + name: "{{item}}" + state: present loop: "{{list_of_packages}}" Note that the types of items you iterate over do not have to be simple lists of strings.