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:
Archy authored and GitHub committed 2026-08-10 14:53:20 -07:00
1 parent e5ec2f07b4
commit 9cdd1dd47c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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:
+1 -1
View File
@@ -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: