1 2 3 4 5 6
--- - name: generate nginx snippets loop: "{{ nginx_sso_backends | dict2items }}" template: src: nginx.snippet.j2 dest: "/etc/nginx/snippets/sso-{{ item.key }}.conf"