From fe765f5d3a2c008b399bfb64c3d8461cd9ff5c53 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Mon, 1 Jun 2015 14:46:06 +0300 Subject: [PATCH] roles/nginx: Fix TLS cert loop to use the current item Signed-off-by: Alan Orth --- roles/nginx/tasks/tls_vhosts.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/nginx/tasks/tls_vhosts.yml b/roles/nginx/tasks/tls_vhosts.yml index bd7a1fa..68722e5 100644 --- a/roles/nginx/tasks/tls_vhosts.yml +++ b/roles/nginx/tasks/tls_vhosts.yml @@ -11,7 +11,7 @@ - name: Copy TLS certs copy: { dest: "{{ tls_key_dir }}/{{ item.nginx_domain_name }}.crt.pem", content: "{{ item.tls_cert }}", mode: 0700, owner: 'root', group: 'root' } with_items: nginx_tls_vhosts - when: tls_cert is defined + when: item.tls_cert is defined notify: - reload nginx