Last active
March 15, 2018 22:03
-
-
Save kmurudi/8e7645ed2a5117c91ebc42118aea57d5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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