network/tests/tests_default_other_provider.yml
Till Maas c279f0afc5 Run integration tests with other provider, too
- Amend and add files to run integration tests against the provider that
was not autodetected, too.
- Add check to ensure that all integration tests run against both
providers
- Run black check for all python scripts
2018-08-01 23:13:30 +02:00

13 lines
480 B
YAML

- hosts: all
tasks:
- service_facts: null
- set_fact:
network_provider: '{{ ''initscripts'' if network_provider_current == ''nm''
else ''nm'' }}'
vars:
network_provider_current: '{{ ''nm'' if ''NetworkManager.service'' in ansible_facts.services
and ansible_facts.services[''NetworkManager.service''][''state''] == ''running''
else ''initscripts'' }}'
- import_playbook: tests_default.yml
when:
- ansible_distribution_major_version != '6'