From 10775a3b4ae08b604cb8213cbcca4a529d0fa1ec Mon Sep 17 00:00:00 2001 From: Hanno Heinrichs Date: Thu, 30 Jun 2016 11:04:41 +0200 Subject: [PATCH] More robust Ansible detection for local Ansible provisioner --- plugins/provisioners/ansible/provisioner/guest.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/provisioners/ansible/provisioner/guest.rb b/plugins/provisioners/ansible/provisioner/guest.rb index 3f8aa87c4..66bc063c2 100644 --- a/plugins/provisioners/ansible/provisioner/guest.rb +++ b/plugins/provisioners/ansible/provisioner/guest.rb @@ -54,7 +54,7 @@ module VagrantPlugins # Check that ansible binaries are well installed on the guest, @machine.communicate.execute( - "ansible-galaxy info --help && ansible-playbook --help", + 'test -x "$(command -v ansible-galaxy)" && test -x "$(command -v ansible-playbook)"', error_class: Ansible::Errors::AnsibleNotFoundOnGuest, error_key: :ansible_not_found_on_guest )