diff --git a/docs/docsite/rst/user_guide/playbooks_loops.rst b/docs/docsite/rst/user_guide/playbooks_loops.rst index 5f88fbf7d5f..a9d5f72b80c 100644 --- a/docs/docsite/rst/user_guide/playbooks_loops.rst +++ b/docs/docsite/rst/user_guide/playbooks_loops.rst @@ -224,12 +224,12 @@ There is also a specific lookup plugin ``inventory_hostnames`` that can be used # show all the hosts in the inventory - debug: msg: "{{ item }}" - loop: "{{lookup('inventory_hostnames', 'all'}}" + loop: "{{ lookup('inventory_hostnames', 'all') }}" # show all the hosts matching the pattern, ie all but the group www - debug: msg: "{{ item }}" - loop: "{{lookup('inventory_hostnames', 'all!www'}}" + loop: "{{ lookup('inventory_hostnames', 'all!www') }}" More information on the patterns can be found on :doc:`intro_patterns`