From bb3609e6b297fd542ec34ac69bb713faf8c216cc Mon Sep 17 00:00:00 2001 From: Ben Mabey Date: Wed, 24 Jul 2013 15:45:58 -0600 Subject: [PATCH] adds extra verbosity option to ansible provisioner --- plugins/provisioners/ansible/provisioner.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/provisioners/ansible/provisioner.rb b/plugins/provisioners/ansible/provisioner.rb index 1142b57cc..5d7a7bbbd 100644 --- a/plugins/provisioners/ansible/provisioner.rb +++ b/plugins/provisioners/ansible/provisioner.rb @@ -19,7 +19,9 @@ module VagrantPlugins options << "--sudo" if config.sudo options << "--sudo-user=#{config.sudo_user}" if config.sudo_user - options << "--verbose" if config.verbose + if config.verbose + options << (config.verbose == :extra ? "-vvv" : "--verbose") + end # Assemble the full ansible-playbook command command = (%w(ansible-playbook) << options << config.playbook).flatten