mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Add Bash shell script to help with namespace setup. Add sections to Ansible playbook for cloning Git repo and inserting Bash shell script for namespace setup. Update README.md with final instructions.
37 lines
760 B
YAML
37 lines
760 B
YAML
---
|
|
- hosts: "all"
|
|
sudo: "yes"
|
|
remote_user: "vagrant"
|
|
|
|
tasks:
|
|
- name: "Install necessary packages"
|
|
apt:
|
|
state: "present"
|
|
update_cache: "yes"
|
|
name: "{{ item }}"
|
|
with_items:
|
|
- qemu-kvm
|
|
- libvirt-bin
|
|
- git
|
|
- autoconf
|
|
- libtool
|
|
- virtinst
|
|
- linux-headers-3.19.0-49-generic
|
|
- linux-image-3.19.0-49-generic
|
|
- linux-image-extra-3.19.0-49-generic
|
|
|
|
- name: "Clone OVS repository"
|
|
sudo: "no"
|
|
git:
|
|
repo: "https://github.com/openvswitch/ovs.git"
|
|
dest: "~/ovs"
|
|
update: "no"
|
|
|
|
- name: "Copy in setup script"
|
|
sudo: "no"
|
|
copy:
|
|
src: "setup.sh"
|
|
dest: "/home/vagrant/setup.sh"
|
|
owner: "vagrant"
|
|
group: "vagrant"
|
|
mode: "0755"
|