From d06ddf8a81030595abd16d8cc8a4df53ed5a2be8 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Thu, 9 Oct 2014 20:57:24 +0300 Subject: [PATCH] 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 --- 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 4217b44..d7e51f9 100644 --- a/roles/nginx/tasks/tls_vhosts.yml +++ b/roles/nginx/tasks/tls_vhosts.yml @@ -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