---
- name: Create the libvirt network for OpenShift
  virt_net:
    name: '{{ libvirt_network }}'
    state: '{{ item }}'
    autostart: 'yes'
    xml: "{{ lookup('template', 'network.xml') }}"
    uri: '{{ libvirt_uri }}'
  with_items:
    - present
    - active
