VAGRANTFILE_API_VERSION = "2" Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.vm.box = "ubuntu/jammy64" config.vm.define "web1" do |master| master.vm.hostname = "web1" master.vm.network "forwarded_port", guest: 80, host: 8080 master.vm.network "private_network", ip: "192.168.56.2" end config.vm.define "web2" do |master| master.vm.hostname = "web2" master.vm.network "forwarded_port", guest: 80, host: 8081 master.vm.network "private_network", ip: "192.168.56.3" end config.vm.provider "virtualbox" do |v| v.memory = 1024 v.cpus = 2 end config.vm.provision "ansible" do |ansible| ansible.playbook = "ansible/playbook.yaml" ansible.vault_password_file = "vault_pass" end end