diff --git a/roles/tls_everywhere/tasks/common.yaml b/roles/tls_everywhere/tasks/common.yaml index ac1dc0e38..a6355018b 100644 --- a/roles/tls_everywhere/tasks/common.yaml +++ b/roles/tls_everywhere/tasks/common.yaml @@ -41,7 +41,7 @@ - name: Firewall validations when: ipa_ca_ping_status.rc == 0 block: - - name: Check all relevant ports for IdM/FreeIPA are accessible from {{ ansible_hostname }} + - name: Check all relevant ports for IdM/FreeIPA are accessible from {{ ansible_facts['hostname'] }} wait_for: host: ipa-ca port: "{{ item }}" @@ -62,14 +62,14 @@ - name: Set facts for ok firewall settings set_fact: firewall_status: "{{ helper_status_ok }}" - firewall_reason: "The host {{ ansible_hostname }} can access FreeIPA through all relevant ports" + firewall_reason: "The host {{ ansible_facts['hostname'] }} can access FreeIPA through all relevant ports" firewall_recommendations: null when: "'failed' not in port_status" - name: Set facts for issues in firewall settings set_fact: firewall_status: "{{ helper_status_error }}" - firewall_reason: "The host {{ ansible_hostname }} could NOT access IdM/FreeIPA on some ports" + firewall_reason: "The host {{ ansible_facts['hostname'] }} could NOT access IdM/FreeIPA on some ports" firewall_recommendations: - "Please make sure that the following ports are open on the IdM/FreeIPA node: {{ firewall_query }}" vars: @@ -81,7 +81,7 @@ - name: Set facts for skipping firewall checks set_fact: firewall_status: "{{ helper_status_skipped }}" - firewall_reason: "skipped {{ ansible_hostname }} firewall checks because DNS wasn't set correctly." + firewall_reason: "skipped {{ ansible_facts['hostname'] }} firewall checks because DNS wasn't set correctly." firewall_recommendations: null when: ipa_ca_ping_status.rc != 0