From 93f36143821b0c8ed8685d78b2f7ecf0c805fff8 Mon Sep 17 00:00:00 2001 From: Brad Beam Date: Mon, 11 Dec 2017 06:48:07 -0600 Subject: [PATCH] Fixes #2039 - changing alt_names to be string instead of list (#2043) --- roles/vault/tasks/bootstrap/gen_vault_certs.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/vault/tasks/bootstrap/gen_vault_certs.yml b/roles/vault/tasks/bootstrap/gen_vault_certs.yml index d542ef845..57397901a 100644 --- a/roles/vault/tasks/bootstrap/gen_vault_certs.yml +++ b/roles/vault/tasks/bootstrap/gen_vault_certs.yml @@ -2,11 +2,11 @@ - include: ../shared/issue_cert.yml vars: issue_cert_common_name: "{{ vault_pki_mounts.vault.roles[0].name }}" - issue_cert_alt_names: "{{ groups.vault + ['localhost'] + vault_ca_options.vault.alt_names|default() }}" - issue_cert_hosts: "{{ groups.vault }}" + issue_cert_alt_names: "{{ groups['vault'] + ['localhost'] + vault_ca_options.vault.alt_names|default() | join(',') }}" + issue_cert_hosts: "{{ groups['vault'] }}" issue_cert_ip_sans: >- [ - {%- for host in groups.vault -%} + {%- for host in groups['vault'] -%} "{{ hostvars[host]['ansible_default_ipv4']['address'] }}", {%- if hostvars[host]['ip'] is defined -%} "{{ hostvars[host]['ip'] }}",