Fixes #2039 - changing alt_names to be string instead of list (#2043)

This commit is contained in:
Brad Beam 2017-12-11 06:48:07 -06:00 committed by Matthew Mosesohn
parent cbc8a7d679
commit 93f3614382

View file

@ -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'] }}",