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:
parent
4b74964963
commit
fe765f5d3a
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user