Merge pull request #10259 from hoatle/bugs/#10258-vagrant_ansible_local_inventory
@ #10258 | BUG: should not create /tmp/vagrant-ansible/inventory/vagrant_ansible_local_inventory/vagrant_ansible_local_inventory
This commit is contained in:
commit
95fad3a8e3
|
@ -125,7 +125,7 @@ module VagrantPlugins
|
|||
inventory_basedir = File.join(config.tmp_path, "inventory")
|
||||
inventory_path = File.join(inventory_basedir, "vagrant_ansible_local_inventory")
|
||||
|
||||
@machine.communicate.sudo("mkdir -p #{inventory_path}")
|
||||
@machine.communicate.sudo("mkdir -p #{inventory_basedir}")
|
||||
@machine.communicate.sudo("chown -R -h #{@machine.ssh_info[:username]} #{config.tmp_path}")
|
||||
@machine.communicate.sudo("rm -f #{inventory_path}", error_check: false)
|
||||
|
||||
|
|
Loading…
Reference in New Issue