dransible-old/Vagrantfile

28 lines
718 B
Ruby
Raw Normal View History

2019-01-22 17:33:05 +00:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "geerlingguy/ubuntu1604"
config.vm.hostname = "dransible"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.provider "virtualbox" do |vb|
vb.name = 'dransible'
2019-02-07 08:32:20 +00:00
vb.memory = 2048
vb.cpus = 1
2019-01-22 17:33:05 +00:00
end
# Set the name of the VM. See: http://stackoverflow.com/a/17864388/100134
config.vm.define :dransible do |dransible|
end
2019-01-22 17:35:45 +00:00
config.vm.provision "ansible" do |ansible|
ansible.compatibility_mode = "2.0"
2019-11-26 09:12:06 +00:00
ansible.playbook = "tools/ansible/provision.yml"
ansible.inventory_path = "tools/ansible/hosts.yml"
2019-01-22 17:35:45 +00:00
ansible.become = true
2019-01-22 20:56:02 +00:00
ansible.ask_vault_pass = true
2019-01-22 17:35:45 +00:00
end
2019-01-22 17:33:05 +00:00
end