provisioners/ansible_local: use the inventory directory

Like in the (remote) `ansible` provisioner, it is preferred to pass the
directory that contains the generated inventory file. This way, advanced
inventory usages can be achieved by adding more inventory files into the
same directory.

Related to #2103 and #6500

[ci skip]
This commit is contained in:
Gilles Cornu 2015-12-08 22:59:02 +01:00
parent e5c5dfbacd
commit 25ff027b08
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ module VagrantPlugins
comm.upload(temp_inventory.path, inventory_path)
end
return inventory_path
return inventory_basedir
end
def generate_inventory_machines