Run Ansible provisioner for the validator vm

This commit is contained in:
Aleskey Zalesov 2018-03-05 18:37:50 +03:00
parent 726694b1c8
commit 2ab5b4ef99
1 changed files with 12 additions and 3 deletions

15
Vagrantfile vendored
View File

@ -4,10 +4,19 @@ ENV["LC_ALL"] = "en_US.UTF-8"
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/xenial64"
config.vm.hostname = "validator"
config.vm.network "private_network", ip: "192.168.57.10"
config.vm.define "vm-01"
config.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.memory = 1024
vb.cpus = 1
vb.name = "validator"
end
config.vm.provision "ansible" do |ansible|
ansible.playbook = "site.yml"
ansible.groups = {
"validator" => ["vm-01"]
}
end
end