mirror of
https://github.com/linux-system-roles/network.git
synced 2026-07-22 18:46:45 +00:00
- 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
13 lines
480 B
YAML
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'
|