Skip to content
Snippets Groups Projects
Commit 93f36143 authored by Brad Beam's avatar Brad Beam Committed by Matthew Mosesohn
Browse files

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

parent cbc8a7d6
No related branches found
No related tags found
No related merge requests found
......@@ -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'] }}",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment