forked from sap-linuxlab/community.sap_install
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sap_general_preconfigure: Revert to ignoring DNS failures
Solves issue sap-linuxlab#784. Signed-off-by: Bernd Finger <bfinger@redhat.com>
- Loading branch information
1 parent
8c760ad
commit b402fd2
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 6 additions & 3 deletions
9
roles/sap_general_preconfigure/tasks/RedHat/generic/check-dns-name-resolution.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
--- | ||
|
||
- name: "Verify the correct DNS hostname to IP address resolution (A record) for {{ sap_general_preconfigure_hostname }}.{{ sap_general_preconfigure_domain }}" | ||
- name: "Verify the correct DNS hostname to IP address resolution (A record)" | ||
ansible.builtin.shell: test "$(dig {{ sap_general_preconfigure_hostname }}.{{ sap_general_preconfigure_domain }} +short)" = "{{ sap_general_preconfigure_ip }}" | ||
changed_when: false | ||
register: __sap_general_preconfigure_register_dns_test_a | ||
failed_when: __sap_general_preconfigure_register_dns_test_a.rc != 0 | ||
ignore_errors: "{{ sap_general_preconfigure_ignore_dns_failures | d(true) }}" | ||
|
||
### BUG: dig does not use search path in resolv.conf on PPCle | ||
- name: "Verify the correct DNS hostname to IP address resolution (A record) using the hostname and the search list for {{ sap_general_preconfigure_hostname }}.{{ sap_general_preconfigure_domain }}" | ||
- name: "Verify the correct DNS hostname to IP address resolution (A record) using hostname and search list" | ||
ansible.builtin.shell: test "$(dig {{ sap_general_preconfigure_hostname }} +search +short)" = "{{ sap_general_preconfigure_ip }}" | ||
changed_when: false | ||
register: __sap_general_preconfigure_register_dns_test_searchlist | ||
failed_when: __sap_general_preconfigure_register_dns_test_searchlist.rc != 0 | ||
ignore_errors: "{{ sap_general_preconfigure_ignore_dns_failures | d(true) }}" | ||
|
||
- name: "Verify the correct DNS IP address to FQDN resolution (PTR record) for {{ sap_general_preconfigure_ip }}" | ||
- name: "Verify the correct DNS IP address to FQDN resolution (PTR record)" | ||
ansible.builtin.shell: test "$(dig -x {{ sap_general_preconfigure_ip }} +short)" = "{{ sap_general_preconfigure_hostname }}.{{ sap_general_preconfigure_domain }}." | ||
changed_when: false | ||
register: __sap_general_preconfigure_register_dns_test_ptr | ||
failed_when: __sap_general_preconfigure_register_dns_test_ptr.rc != 0 | ||
ignore_errors: "{{ sap_general_preconfigure_ignore_dns_failures | d(true) }}" |