roles/nginx: Update TLS vhost task for Ansible > 1.7.1
Seems there is some YAML sublety that causes this syntax to insert double spaces on the destination file... using native YAML hashes are a workaround, see GitHub issues: https://github.com/ansible/ansible/issues/9067 https://github.com/ansible/ansible/issues/9172 Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
parent
ad8a704470
commit
d06ddf8a81
@ -9,7 +9,7 @@
|
||||
# concatenated key + cert, can live in the same file
|
||||
# See: http://nginx.org/en/docs/http/configuring_https_servers.html
|
||||
- name: Copy TLS certs
|
||||
copy: content="{{ item.tls_cert }}" dest={{ tls_key_dir }}/{{ item.nginx_domain_name }}.crt.pem 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
|
||||
notify:
|
||||
- reload nginx
|
||||
|
Loading…
Reference in New Issue
Block a user