---
- hosts: all
  name: Run playbook 'tests_bridge.yml' with non-default provider
  tasks:
  - name: Get service facts
    service_facts: null
  - name: Set network provider
    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_bridge.yml
  when:
  - ansible_distribution_major_version != '6'
