-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
executable file
·26 lines (23 loc) · 922 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.define "desktop" do |desktop|
desktop.vm.box = "ubuntu/bionic64"
desktop.vm.box_check_update = false
desktop.vm.hostname = "desktop"
desktop.vm.network "private_network",ip: "192.168.200.10", dns:"8.8.8.8"
desktop.vm.provider "virtualbox" do |vb|
vb.memory = 5120
vb.cpus = 2
end
config.vm.provision "file", source: "playbooks", destination: "/home/vagrant/"
config.vm.provision "file", source: "roles", destination: "/home/vagrant/"
config.vm.provision "file", source: "install_ansible.sh", destination: "/home/vagrant/"
config.vm.provision "shell", inline: <<-SHELL
sudo add-apt-repository ppa:gnome3-team/gnome3
sudo apt-get update
sudo apt-get install gnome-shell ubuntu-gnome-desktop -y
sudo cp -a /home/vagrant/roles /etc/ansible
SHELL
end
end