22 lines
646 B
Ruby
22 lines
646 B
Ruby
# Default to bookworm, but just set env variable to, for example,
|
|
# "debian/buster64" to run test against buster.
|
|
OS_TO_TEST = ENV.fetch("OS_TO_TEST", "debian/bookworm64")
|
|
|
|
Vagrant.configure("2") do |config|
|
|
config.vm.box = OS_TO_TEST
|
|
|
|
config.nfs.verify_installed = false
|
|
config.vm.synced_folder ".", "/vagrant", disabled: true
|
|
|
|
|
|
config.vm.provision "ansible" do |ansible|
|
|
# ansible.verbose = "vvv"
|
|
ansible.extra_vars = {
|
|
"ansible_ssh_user" => "vagrant",
|
|
}
|
|
ansible.raw_arguments = ["--ssh-extra-args", "'-o DSAAuthentication=yes'"]
|
|
|
|
ansible.compatibility_mode = "2.0"
|
|
ansible.playbook = "test.yml"
|
|
end
|
|
end
|