Skip to content

Instantly share code, notes, and snippets.

@kmurudi
Last active March 15, 2018 22:03
Show Gist options
  • Save kmurudi/8e7645ed2a5117c91ebc42118aea57d5 to your computer and use it in GitHub Desktop.
Save kmurudi/8e7645ed2a5117c91ebc42118aea57d5 to your computer and use it in GitHub Desktop.
- hosts: localhost
gather_facts: no
become: yes
## Package installations
tasks:
- name: Check for qemu-kvm
apt:
name: qemu-kvm
state: present
- name: Check for libvirt packages and ovs
apt:
name: "{{ item }}"
state: present
with_items:
- libvirt-bin
- virt-manager
- virt-viewer
- virtinst
- openvswitch-switch
- name: Create an OvS bridge
openvswitch_bridge:
bridge: sw1
state: present
- name: Create an OvS bridge
openvswitch_bridge:
bridge: sw2
state: present
- name: Create an OvS bridge
openvswitch_bridge:
bridge: sw3
state: present
- name: Create an OvS bridge
openvswitch_bridge:
bridge: sw4
state: present
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment