homelab/Vagrantfile

19 lines
584 B
Ruby

VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "archlinux/archlinux"
# config.vm.network :forwarded_port, guest: 80, host: 80
# config.vm.network :forwarded_port, guest: 443, host: 443
config.vm.network "public_network", ip: "192.168.0.104", bridge: [ "enp0s31f6" ]
config.vm.provision :ansible do |ansible|
ansible.become = true
ansible.compatibility_mode = "2.0"
ansible.playbook = "playbook.yml"
ansible.raw_arguments = Shellwords.shellsplit(ENV['ANSIBLE_ARGS']) if ENV['ANSIBLE_ARGS']
end
end