From 9dbdb9397a92d4fc489e9afcb022621df7f60d11 Mon Sep 17 00:00:00 2001 From: Daniel Schreiber Date: Wed, 13 Jan 2016 23:05:39 +0100 Subject: [PATCH] fixing incorrect missing ansible error At least for ansible 2.0.0.1 the command `ansible-galaxy --help` is inappropriate for testing if ansible is installed, as it yields an error: ``` vagrant@vagrant-ubuntu-trusty-64:~$ ansible-galaxy --help && echo "OK" Usage: ansible-galaxy [delete|import|info|init|install|list|login|remove|search|setup] [--help] [options] ... Options: -h, --help show this help message and exit -v, --verbose verbose mode (-vvv for more, -vvvv to enable connection debugging) --version show program's version number and exit ERROR! Missing required action ``` --- 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 833fbfc8b..741b07301 100644 --- a/plugins/provisioners/ansible/provisioner/guest.rb +++ b/plugins/provisioners/ansible/provisioner/guest.rb @@ -52,7 +52,7 @@ module VagrantPlugins # Check that ansible binaries are well installed on the guest, @machine.communicate.execute( - "ansible-galaxy --help && ansible-playbook --help", + "ansible-galaxy info --help && ansible-playbook --help", :error_class => Ansible::Errors::AnsibleNotFoundOnGuest, :error_key => :ansible_not_found_on_guest)