mirror of
https://github.com/k3s-io/k3s-ansible.git
synced 2026-10-23 03:22:03 +02:00
fix: read hostname from ansible_facts in the TLS SAN condition (#548)
Signed-off-by: Artem Muterko <artem@sopho.tech>
This commit is contained in:
1 parent
e5ec2f07b4
commit
9cdd1dd47c
2 files changed
+2
-2
No files matched your search
@@ -48,7 +48,7 @@
|
|||||||
- name: Add TLS SAN to config if needed
|
- name: Add TLS SAN to config if needed
|
||||||
when:
|
when:
|
||||||
- api_endpoint is defined
|
- api_endpoint is defined
|
||||||
- api_endpoint != ansible_hostname
|
- api_endpoint != ansible_facts['hostname']
|
||||||
- not (_api_endpoint_in_config | trim | bool)
|
- not (_api_endpoint_in_config | trim | bool)
|
||||||
- not (_api_endpoint_in_args | trim | bool)
|
- not (_api_endpoint_in_args | trim | bool)
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
@@ -84,7 +84,7 @@
|
|||||||
- name: Add TLS SAN to config if needed
|
- name: Add TLS SAN to config if needed
|
||||||
when:
|
when:
|
||||||
- api_endpoint is defined
|
- api_endpoint is defined
|
||||||
- api_endpoint != ansible_hostname
|
- api_endpoint != ansible_facts['hostname']
|
||||||
- not (_api_endpoint_in_config | trim | bool)
|
- not (_api_endpoint_in_config | trim | bool)
|
||||||
- not (_api_endpoint_in_args | trim | bool)
|
- not (_api_endpoint_in_args | trim | bool)
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
|
|||||||
Reference in new issue
Block a user