https://github.com/pixelart/ansible-role-vagrant
Ansible Role: Vagrant
https://github.com/pixelart/ansible-role-vagrant
Last synced: 6 months ago
JSON representation
Ansible Role: Vagrant
- Host: GitHub
- URL: https://github.com/pixelart/ansible-role-vagrant
- Owner: pixelart
- License: mit
- Created: 2017-01-31T15:24:51.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T12:41:04.000Z (about 9 years ago)
- Last Synced: 2025-01-21T09:31:18.370Z (over 1 year ago)
- Homepage: https://galaxy.ansible.com/pixelart/vagrant/
- Size: 25.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Ansible Role: Vagrant
[](https://travis-ci.org/pixelart/ansible-role-vagrant)
Installs [Vagrant](https://www.vagrantup.com/) on Ubuntu or Debian.
## Requirements
- `virtualbox` or any other vm provider should be installed and working.
## Role Variables
Available variables are listed below, along with default values (see `defaults/main.yml`):
vagrant_version: '1.9.4'
The version of Vagrant which should be installed.
vagrant_manage_sudoers: false
If the sudoers file should be managed for passwordless vagrant up/down if using NFS. If true, a `/etc/sudoers.d/vagrant-syncedfolders` will be created and the `#includedir /etc/sudoers.d` directive activated. This is managed only for Ubuntu now. On Ubuntu the user must be in the `sudo` group.
vagrant_plugin_users: []
Add a list of user account names for which vagrant plugins should be installed.
vagrant_plugins: []
Add a list of vagrant with a `name` and (optional) `version` constraint or specific version to be installed for the users above. For example:
```yaml
vagrant_plugins:
# Install a higher version than supplied by the system
- name: vagrant-share
version: '>=1.1.8'
# Install the latest stable release of a plugin.
- name: vagrant-cachier
```
vagrant_plugins_keep_updated: false
Set to true if you want to keep the vagrant plugins installed updated. If you set this to true, only plugins without version constraint above are updated. Install with specific version and update is mutually exclusive.
## Dependencies
None.
## Example Playbook
- hosts: phpdevs
vars_files:
- vars/main.yml
roles:
- pixelart.vagrant
*Inside `vars/main.yml`*:
vagrant_plugin_users: ['username']
vagrant_plugins:
- name: vagrant-bindfs
- name: vagrant-cachier
- name: vagrant-hostmanager
- name: vagrant-vbguest
After the playbook runs, `vagrant` will be accessible via normal user accounts.
## Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
## License
MIT, see the [LICENSE](LICENSE) file.
## Author Information
This role was created in 2017 by [pixelart GmbH](https://www.pixelart.at/).