tests: do not run test_switch_provider on CentOS/RHEL 9

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
This commit is contained in:
Fernando Fernandez Mancera 2022-02-03 18:01:53 +01:00 committed by Till Maas
parent ac33851552
commit 2ebc8b5022

View file

@ -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'