Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

⚡ Ansible role to setup automatic startup of VirtualBox VMs at system boot

License

Notifications You must be signed in to change notification settings

dmotte/ansible-role-vbox-autostart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible-role-vbox-autostart

GitHub latest release Ansible Galaxy

⚠️ Warning: this project is no longer maintained ⚠️

I decided to convert the Ansible code to Bash for simplicity.


Ansible role to setup automatic startup of VirtualBox VMs at system boot.

This role is inspired by the following article: AutoStart VirtualBox VMs on System Boot on Linux - kifarunix.com.

Usage

  1. Install this role using the ansible-galaxy CLI tool
  2. You can then include it into the tasks section of your Ansible Playbook. See test/playbook.yml for an example of how to do that. Remember to replace the role name with dmotte.vbox_autostart.

Note: this role must be run as root (ansible_become: true).

Note: if you want to automate also the VirtualBox installation on the host, you can use the oefenweb.virtualbox role.

Role variables

See defaults/main.yml.

Development

If you want to contribute to this project, you can use the test/playbook.yml file to test the role while editing it.

Place your inventory file (e.g. hosts.yml) inside the test folder.

Edit the vars section of the test/playbook.yml file to match your scenario.

You can then execute the playbook against your host:

cd test/
ansible-playbook -i hosts.yml playbook.yml