diff --git a/tests/tests_switch_provider.yml b/tests/tests_switch_provider.yml index 562fbf2..75afbac 100644 --- a/tests/tests_switch_provider.yml +++ b/tests/tests_switch_provider.yml @@ -5,6 +5,8 @@ - import_playbook: playbooks/tests_switch_provider.yml when: - # The test requires or should run with NetworkManager, therefore it cannot - # run on RHEL/CentOS 6 - - ansible_distribution_major_version != '6' + # The test requires NetworkManager and initscripts, therefore it can only + # run on RHEL/CentOS 7, RHEL/CentOS 8, or Fedora + - ansible_distribution in ['CentOS', 'RedHat'] and + ansible_distribution_major_version in ['7', '8'] + or ansible_distribution == 'Fedora'