provisioners/ansible_local: align console outputs

Use "info" level for main tasks (installing ansible, running galaxy,
running playbook).
Use "detail" level for subsequent details.
This commit is contained in:
Gilles Cornu 2015-11-18 09:37:27 +01:00
parent c1f3d114f5
commit 819c9b6425
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ module VagrantPlugins
@machine.ui.detail I18n.t("vagrant.provisioners.ansible.running_#{name}") @machine.ui.detail I18n.t("vagrant.provisioners.ansible.running_#{name}")
if verbosity_is_enabled? if verbosity_is_enabled?
# Show the ansible command in use # Show the ansible command in use
@machine.env.ui.detail(command) @machine.env.ui.detail command
end end
end end

View File

@ -46,7 +46,7 @@ module VagrantPlugins
if config.install && if config.install &&
(config.version.to_s.to_sym == :latest || (config.version.to_s.to_sym == :latest ||
!@machine.guest.capability(:ansible_installed, config.version)) !@machine.guest.capability(:ansible_installed, config.version))
@machine.ui.info(I18n.t("vagrant.provisioners.ansible.installing")) @machine.ui.detail I18n.t("vagrant.provisioners.ansible.installing")
@machine.guest.capability(:ansible_install) @machine.guest.capability(:ansible_install)
end end