forked from HanXHX/ansible-debian-bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Vagrantfile
34 lines (28 loc) · 862 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
27
28
29
30
31
32
33
34
# -*- mode: ruby -*-
# vi: set ft=ruby :
# vi: set tabstop=2 :
# vi: set shiftwidth=2 :
Vagrant.configure("2") do |config|
vms_debian = [
{ :name => "debian-bullseye", :box => "generic/debian11", :vars => {} },
# { :name => "debian-bookworm", :box => "generic/debian12", :vars => {} },
]
config.vm.network "private_network", type: "dhcp"
vms_debian.each do |opts|
config.vm.define opts[:name] do |m|
m.vm.box = opts[:box]
m.vm.provider "libvirt" do |v|
v.cpus = 1
v.memory = 512
end
m.vm.provision "ansible" do |ansible|
ansible.playbook = "tests/test.yml"
ansible.verbose = 'vv'
ansible.become = true
ansible.extra_vars = opts[:vars]
ansible.raw_arguments = ["-D"]
ansible.compatibility_mode = "2.0"
end
end
end
end