FreeBSD: Update Ansible's package name

The Ansible package in FreeBSD is now `py36-ansible`.

If `pkg` itself needs updating, passing only one 'yes' is not enough to
confirm the installation of the package.  Use the `-y` option,
specifically made for this purpose.  Also add `-q` to force a quiet
output, inline with other guests.

References:

- [`pkg-install(8)`](https://www.freebsd.org/cgi/man.cgi?query=pkg-install&sektion=8)
- freebsd/freebsd-ports@cbf5576945
This commit is contained in:
Jose Luis Duran 2019-09-08 16:57:01 -03:00 committed by Brian Cain
parent 0c0352201d
commit 582f46231b
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ module VagrantPlugins
if install_mode != :default
raise Ansible::Errors::AnsiblePipInstallIsNotSupported
else
machine.communicate.sudo "yes | pkg install ansible"
machine.communicate.sudo "pkg install -qy py36-ansible"
end
end