Infra: Vagrant fix ansible path
[csit.git] / csit.infra.vagrant / Vagrantfile
index f7c02e8..f951425 100644 (file)
@@ -27,16 +27,17 @@ Vagrant.configure("2") do |config|
     config.vm.network :private_network, type: "dhcp", auto_config: false, virtualbox__intnet: "link2", nic_type: "82545em", mac: "080027e3f542"
     config.vm.network :private_network, type: "dhcp", auto_config: false, virtualbox__intnet: "link3", nic_type: "82545em", mac: "0800274f7c63"
 
+    config.vm.synced_folder "../", "/vagrant/csit"
+
     # Provision the box using ansible local (no Ansible installation needed
     # on host).
     config.vm.provision "ansible_local" do |ansible|
         ansible.version = "latest"
-        ansible.compatibility_mode = "2.0"
         ansible.become = true
         ansible.verbose = false
         ansible.limit = "vagrant"
-        ansible.inventory_path = "../fdio.infra.ansible/inventories/vagrant/hosts"
-        ansible.playbook = "../fdio.infra.ansible/site.yml"
+        ansible.inventory_path = "csit/fdio.infra.ansible/inventories/vagrant_inventory/hosts"
+        ansible.playbook = "csit/fdio.infra.ansible/site.yaml"
     end
 
     config.vm.post_up_message = <<-MESSAGE