# -*- mode: ruby -*- # vi: set ft=ruby : Vagrant.configure("2") do |config| # Use an Ubuntu 24.04 box (replace with an available box if necessary) config.vm.box = "generic/ubuntu2404" # Configure VM provider resources (optional) config.vm.provider "virtualbox" do |vb| vb.memory = "4096" vb.cpus = 2 end # Use Ansible for provisioning config.vm.provision "ansible" do |ansible| ansible.playbook = "playbook.yml" # Path to the Ansible playbook relative to the Vagrantfile ansible.inventory_path = "inventory" # Path to the inventory file # Extra vars can be defined if needed # ansible.extra_vars = { some_var: "value" } end end