Skip to content

ansible role to install virtualbox on ubuntu version >= 12

Notifications You must be signed in to change notification settings

merlindeep/ansible-virtualbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible role: virtualbox

Build Status

An Ansible role for installing VirtualBox on Ubuntu.

Requirements

This role requires Ansible 2.0 or higher.

Tested on Ubuntu 12.04 and 14.04. Should work on all Ubuntu versions >= 12.04.

Role Variables

Default variables:

---
# defaults file for virtualbox
virtualbox_version: "5.0"
virtualbox_install_dkms: no

Dependencies

None.

Example Playbook

Use the option '--ask-become-pass' (or alias '-K') when running playbook using this role with ansible-playbook (like 'ansible-playbook -i ./hosts vbox.yml -K').

Install VirtualBox:

- hosts: all
  roles:
    - { role: hubisan.virtualbox }

Install specific version of VirtualBox and virtualbox-dkms:

- hosts: all
  roles:
    - { role: hubisan.virtualbox, virtualbox_version: "4.2", virtualbox_install_dkms: yes }

Installation

Installation from Ansible Galaxy

  • On the command line:

    ansible-galaxy install hubisan.virtualbox
  • Inside a playbook from requirements file:
    Add the source to requirements.yml:

    - src: hubisan.virtualbox

    And add the command to your playbook:

    - name: install requirements from ansible galaxy
      command: ansible-galaxy install -r requirements.yml --ignore-errors

    This playbook has to be run before using the role in another playbook.

Installation from Github directly

To install from GitHub directly add the source to requirements.yml:

- name: hubisan.virtualbox
  src: https://github.com/hubisan/ansible-virtualbox

And add the command to your playbook:

- name: install requirements from ansible galaxy
  command: ansible-galaxy install -r requirements.yml --ignore-errors

This playbook has to be run before using the role in another playbook.

License

MIT

Author Information

Daniel Hubmann

About

ansible role to install virtualbox on ubuntu version >= 12

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published