scottslowe-learning-tools/kvm/kvm-macvtap/provision.yml
Scott Lowe 43ab5524a2
Reorganize repository contents
Move contents into new folder structure based on primary technology

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
2017-02-23 16:12:37 -07:00

32 lines
772 B
YAML

---
- hosts: "all"
sudo: "yes"
remote_user: "vagrant"
tasks:
- name: "Install KVM and Libvirt"
apt:
state: "present"
update_cache: "yes"
name: "{{ item }}"
with_items:
- qemu-kvm
- libvirt-bin
- virtinst
- name: Download Cirros image
get_url:
url: https://download.cirros-cloud.net/0.3.2/cirros-0.3.2-x86_64-disk.img
dest: /home/vagrant/cirros-0.3.2-x86_64-disk.img
validate_certs: no
- name: Set file permissions
file:
path: /home/vagrant/cirros-0.3.2-x86_64-disk.img
owner: vagrant
group: vagrant
mode: 0644
- name: Copy Libvirt network definition
copy:
src: macvtap.xml
dest: /home/vagrant/macvtap.xml
owner: vagrant
group: vagrant