From fa69298b708ea1829f128c55cc9a84601638a0b2 Mon Sep 17 00:00:00 2001 From: Wen Liang Date: Tue, 5 Apr 2022 15:48:53 -0400 Subject: [PATCH] ipv6_disabled: Skip the tests on RHEL-7 or CentOS-7 ip.ipv6_disabled is not supported by the running version of NetworkManager when testing on RHEL-7 or CentOS-7, therefore, skip the tests on RHEL-7 or CentOS-7. Signed-off-by: Wen Liang --- tests/playbooks/tests_ipv6_dns_search.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/playbooks/tests_ipv6_dns_search.yml b/tests/playbooks/tests_ipv6_dns_search.yml index d95eee5..1fa64fc 100644 --- a/tests/playbooks/tests_ipv6_dns_search.yml +++ b/tests/playbooks/tests_ipv6_dns_search.yml @@ -124,12 +124,14 @@ state: up ignore_errors: true # noqa ignore-errors changed_when: false + when: ansible_distribution_major_version | int > 7 - name: Assert that reconfiguring network connection is failed assert: that: - __network_connections_result.failed msg: reconfiguring network connection is not failed + when: ansible_distribution_major_version | int > 7 - name: Assert that configuring DNS search setting is not allowed when both IPv4 and IPv6 are disabled @@ -141,6 +143,7 @@ msg: Reconfiguring network connection is not failed with the error "Setting 'dns_search' or 'dns_options' is not allowed when both IPv4 and IPv6 are disabled." + when: ansible_distribution_major_version | int > 7 always: - block: