Debian workstation project with guest additions
This commit is contained in:
20
Vagrantfile
vendored
Normal file
20
Vagrantfile
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
Vagrant.configure("2") do |config|
|
||||
config.vm.box = "debian/bullseye64"
|
||||
config.vm.network "private_network", type: "dhcp"
|
||||
config.vm.synced_folder ".", "/vagrant", disabled: true
|
||||
|
||||
# Boot with a GUI in VirtualBox
|
||||
config.vm.provider "virtualbox" do |vbox|
|
||||
vbox.customize ["modifyvm", :id, "--vram", "128"]
|
||||
vbox.memory = 4096
|
||||
vbox.cpus = 2
|
||||
vbox.gui = true
|
||||
end
|
||||
|
||||
# Provision with Ansible
|
||||
config.vm.provision "ansible" do |ansible|
|
||||
ENV['ANSIBLE_ROLES_PATH'] = File.dirname(__FILE__) + "/roles"
|
||||
ansible.compatibility_mode = "2.0"
|
||||
ansible.playbook = "site-vagrant.yml"
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user