This repo is not maintained here anymore, but at https://github.com/stefanhorning/ansible-role-virtualbox
Installs headless Virtualbox and phpVirtualbox for remote access through Web GUI. Meant for a headless Ubuntu or Debian servers.
Once the role has run through you can access the VirtualBox GUI from a browser by opening http://<HostnameOrIP>/
.
Use the IP or the hostname here that Ansible was running against. Make sure port 80 is not blocked by any firewall.
For the first login use admin:admin
. See more details in the phpVirtualbox docs
Tested with Ubuntu 14.04 and 16.04. Probably works with all Debian and Ubuntu flavours and versions which are not too old.
Those are the role variables you probably want to change:
virtualbox_user: vbox
- User that runs Virtualbox deamon and phpVirtualbox connects to. This is NOT the user for signing in to the phpVirtualbox GUIvirtualbox_user_pw: abc123
- Plaintext PW for virtualbox daemon user, needed for phpVirtualbox connection config.
There is more variables you can overwrite when using this role. For a full list see defaults/main.yml
.
Depends on no other roles.
Copy this role into the roles/mediapeers.virtualbox dir in your Ansible project. Preferably add it as a submodule.
You can also install it with ansible-galaxy install mediapeers.virtualbox
.
Then use it like so:
- name: My playbook
hosts: servers
roles:
- { role: mediapeers.virtualbox, virtualbox_user: vbox, virtualbox_user_pw: supersecretvalue }
BSD
Stefan Horning horning@mediapeers.com