homelab/Vagrantfile

19 lines
584 B
Ruby
Raw Normal View History

2021-05-13 21:47:34 +00:00
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"
2021-05-14 22:00:54 +00:00
ansible.raw_arguments = Shellwords.shellsplit(ENV['ANSIBLE_ARGS']) if ENV['ANSIBLE_ARGS']
2021-05-13 21:47:34 +00:00
end
end