From 8de0b88c1c8db474f41ba1d7176861308e061e61 Mon Sep 17 00:00:00 2001 From: Patrick Craston Date: Wed, 27 Nov 2013 13:12:50 +0000 Subject: [PATCH] Updated Fix for documentation playbook loops if key is used with lookup parameter needs quotes as otherwise it will load "ssh-rsa" "" "" as separate values and fail with "this module requires key=value arguments" --- docsite/rst/playbooks_loops.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docsite/rst/playbooks_loops.rst b/docsite/rst/playbooks_loops.rst index 7867e9a6c04..abd0281261a 100644 --- a/docsite/rst/playbooks_loops.rst +++ b/docsite/rst/playbooks_loops.rst @@ -128,7 +128,7 @@ It might happen like so:: - user: name={{ item.name }} state=present generate_ssh_key=yes with_items: users - - authorized_key: user={{ item.0.name }} key="{{ lookup('file', item.1) }}" + - authorized_key: "user={{ item.0.name }} key='{{ lookup('file', item.1) }}'" with_subelements: - users - authorized