diff --git a/testsite/playbooks/tls.yml b/testsite/playbooks/tls.yml index 32673af11ef3ca58dc1e44a00f4e2b5df241f25c..27b866cc040e11b4eb5560c7bc6bbc6e851fb3db 100644 --- a/testsite/playbooks/tls.yml +++ b/testsite/playbooks/tls.yml @@ -30,7 +30,7 @@ tasks: - name: Create GnuTLS certificate templates for all hosts template: src="../tls/gnutls_server_certificate.cfg.j2" dest="../tls/{{ item.hostname }}.{{ testsite_domain }}_{{ item.service }}.cfg" - with_items: host_tls_info + with_items: "{{ host_tls_info }}" - name: Create the CA key command: certtool --sec-param high --generate-privkey --outfile ../tls/ca.key args: @@ -41,7 +41,7 @@ creates: ../tls/ca.pem - name: Create private keys for all hosts command: certtool --sec-param normal --generate-privkey --outfile "../tls/{{ item.hostname }}.{{ testsite_domain }}_{{ item.service }}.key" - with_items: host_tls_info + with_items: "{{ host_tls_info }}" args: creates: "../tls/{{ item.hostname }}.{{ testsite_domain }}_{{ item.service }}.key" - name: Issue certificates for all hosts @@ -50,6 +50,6 @@ --template "../tls/{{ item.hostname }}.{{ testsite_domain }}_{{ item.service }}.cfg" --load-privkey "../tls/{{ item.hostname }}.{{ testsite_domain }}_{{ item.service }}.key" --outfile "../tls/{{ item.hostname }}.{{ testsite_domain }}_{{ item.service }}.pem" - with_items: host_tls_info + with_items: "{{ host_tls_info }}" args: - creates: "../tls/{{ item.hostname }}.{{ testsite_domain }}_{{ item.service }}.pem" \ No newline at end of file + creates: "../tls/{{ item.hostname }}.{{ testsite_domain }}_{{ item.service }}.pem"