diff --git a/docsite/rst/playbooks_loops.rst b/docsite/rst/playbooks_loops.rst index 6803e594b7..abd0281261 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