Crank, Daniel (dc6350) 6ad6bb6d8c Move vino-builder into vino
This patchset moves the vino-builder image build from the images
repo into the vino repo. [0] removes it from the images repo.

[0] https://review.opendev.org/c/airship/images/+/786714

Change-Id: I8299045cdfaaf285e0f088b330a84e00fcb8307c
2021-05-14 22:06:13 -05:00

37 lines
1.1 KiB
YAML

# Facts will be available as 'ansible_libvirt_networks'
- name: initially gather facts on existing virsh networks
virt_net:
command: facts
name: "" # this attribute is not needed but required
uri: "{{ libvirt_uri }}"
ignore_errors: true
- name: Print value of ansible networks
debug:
msg: "Value of ansible_libvirt_networks is {{ ansible_libvirt_networks }}"
# TODO(alanmeadows): deal with updates as once its defined we will
# never re-define it
- name: add networks defined if they do not already exist
virt_net:
state: present
# looks like setting name here is a redundant, the name is anyways taken from the template xml file, but should set it to make virt_pool module happy.
name: "{{ item.name }}"
xml: "{{ item.libvirtTemplate }}"
uri: "{{ libvirt_uri }}"
vars:
nodebridgegw: ipam.bridge_ip
- name: activate the network
virt_net:
state: active
name: "{{ item.name }}"
uri: "{{ libvirt_uri }}"
# these are idempotent so require no conditional checks
- name: autostart the network
virt_net:
autostart: yes
name: "{{ item.name }}"
uri: "{{ libvirt_uri }}"