roles/nginx: Fix TLS cert loop to use the current item

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-06-01 14:46:06 +03:00
parent 4b74964963
commit fe765f5d3a
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -11,7 +11,7 @@
- name: Copy TLS certs - 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' } 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 with_items: nginx_tls_vhosts
when: tls_cert is defined when: item.tls_cert is defined
notify: notify:
- reload nginx - reload nginx