diff --git a/roles/kubernetes/secrets/tasks/gen_certs_vault.yml b/roles/kubernetes/secrets/tasks/gen_certs_vault.yml index 05afdfcf8..8c9d12384 100644 --- a/roles/kubernetes/secrets/tasks/gen_certs_vault.yml +++ b/roles/kubernetes/secrets/tasks/gen_certs_vault.yml @@ -52,6 +52,11 @@ "{{ hostvars[host]['ip'] }}", {%- endif -%} {%- endfor -%} + {%- if supplementary_addresses_in_ssl_keys is defined -%} + {%- for ip_item in supplementary_addresses_in_ssl_keys -%} + "{{ ip_item }}", + {%- endfor -%} + {%- endif -%} "127.0.0.1","::1","{{ kube_apiserver_ip }}" ] issue_cert_path: "{{ item }}" @@ -112,6 +117,11 @@ "{{ hostvars[host]['ip'] }}", {%- endif -%} {%- endfor -%} + {%- if supplementary_addresses_in_ssl_keys is defined -%} + {%- for ip_item in supplementary_addresses_in_ssl_keys -%} + "{{ ip_item }}", + {%- endfor -%} + {%- endif -%} "127.0.0.1","::1","{{ kube_apiserver_ip }}" ] issue_cert_path: "{{ item }}"