More robust Ansible detection for local Ansible provisioner

This commit is contained in:
Hanno Heinrichs 2016-06-30 11:04:41 +02:00 committed by Hanno Heinrichs
parent a4f45a18a6
commit 10775a3b4a
1 changed files with 1 additions and 1 deletions

View File

@ -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
)