The ansible install-vagrant role lets you get install vagrant, and on Linux also installs the vagrant-libvirt plugin.
Run a supported OS/distribution:
- SUSE SLE / OpenSUSE
- Red Hat / Fedora
- Debian / Ubuntu
- vagrant_version: the vagrant version to install. This is only used if downloading and installing the zip file.
- force_install_zip: if your distro supports a package ignore it, and instead installt he package from the zip file directly from Hashicorp
- force_install_if_present: set to False by default, set this to True to force download vagrant even if you already have it present.
None.
Below is an example playbook, say a bootlinux.yml file:
---
- hosts: localhost
roles:
- role: mcgrof.install-vagrant
GPLv2