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:
Alan Orth 2014-10-09 20:57:24 +03:00
parent ad8a704470
commit d06ddf8a81
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -9,7 +9,7 @@
# concatenated key + cert, can live in the same file # concatenated key + cert, can live in the same file
# See: http://nginx.org/en/docs/http/configuring_https_servers.html # See: http://nginx.org/en/docs/http/configuring_https_servers.html
- name: Copy TLS certs - 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 with_items: nginx_tls_vhosts
notify: notify:
- reload nginx - reload nginx