https://github.com/petermosmans/ansible-role-provision-vagrant
An ansible role to provision a machine for Vagrant usage
https://github.com/petermosmans/ansible-role-provision-vagrant
Last synced: 5 months ago
JSON representation
An ansible role to provision a machine for Vagrant usage
- Host: GitHub
- URL: https://github.com/petermosmans/ansible-role-provision-vagrant
- Owner: PeterMosmans
- License: gpl-3.0
- Created: 2016-06-26T06:33:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-05-11T04:04:03.000Z (about 9 years ago)
- Last Synced: 2025-01-23T06:29:03.629Z (over 1 year ago)
- Size: 18.6 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Ansible Role: provision-vagrant
===================
Build status for this role: [](https://travis-ci.org/PeterMosmans/ansible-role-provision-vagrant)
This role provisions a machine for Vagrant usage. It will add the vagrant user, enable (passwordless) sudo access, and allows access with a public SSH key.
Requirements
------------
None.
Role Variables
--------------
Available variables are listed below, along with default values.
**vagrant_key**: The public key for the vagrant user. If not specified, defaults to the default Vagrant insecure public key (as specified in `vars/main.yml`).
Dependencies
------------
None.
Example Playbook
----------------
```
- hosts: all
become: yes
become_method: sudo
roles:
- role: PeterMosmans.provision-vagrant
```
Note that a private key for the vagrant user will be added as well, which can be found under `files/id_rsa`. By default, this is the 'insecure' default private Vagrant key, to facilitate hopping to other Vagrant boxes.
License
-------
GPLv3
Author Information
------------------
Created by Peter Mosmans. Feedback always appreciated.