mirror of
https://github.com/de-it-krachten/ansible-role-virtualbox_guest
synced 2026-05-14 03:51:49 +00:00
No description
- Jinja 100%
# [1.7.0](https://github.com/de-it-krachten/ansible-role-virtualbox_guest/compare/v1.6.0...v1.7.0) (2026-03-15) ### Features * Added support for Fedora 43 ([ |
||
|---|---|---|
| .github/workflows | ||
| defaults | ||
| meta | ||
| molecule/default | ||
| tasks | ||
| vars | ||
| .ansible-lint | ||
| .ansible-lint-molecule | ||
| .cicd | ||
| .cicd.overwrite | ||
| .collections | ||
| .gitignore | ||
| .releaserc.yml | ||
| .roles | ||
| .yamllint | ||
| CHANGELOG.md | ||
| README.md | ||
ansible-role-virtualbox_guest
Compiles Virtualbox guest additions from source
Dependencies
Roles
None
Collections
- ansible.posix
Platforms
Supported platforms
- Debian 11 (Bullseye)
- Debian 12 (Bookworm)
- Debian 13 (Trixie)
- Ubuntu 20.04 LTS
- Ubuntu 22.04 LTS
- Ubuntu 24.04 LTS
- Fedora 42
- Fedora 43
Note: 1 : no automated testing is performed on these platforms
Role Variables
defaults/main.yml
# List of packages to remove
virtualbox_guest_obsolete_packages:
- virtualbox-guest-x11
- virtualbox-guest-additions
- virtualbox-guest-dkms
- virtualbox-guest-utils
force_virtbox_guest: False
skip_reboot: False
virtbox_iso: /usr/share/virtualbox/VBoxGuestAdditions.iso
virtbox_method: iso
vars/family-Debian.yml
# List of packages needed for compilation
virtualbox_guest_packages:
- build-essential
- dkms
# - linux-headers-{{ ansible_kernel }}
- linux-headers-amd64
- p7zip-full
vars/family-RedHat.yml
# List of packages needed for compilation
virtualbox_guest_packages:
- gcc
- kernel-devel
- kernel-headers
- dkms
- make
- bzip2
- perl
- p7zip
- p7zip-plugins
vars/Fedora.yml
# List of packages needed for compilation
virtualbox_guest_packages:
- gcc
- kernel-devel
- kernel-headers
- dkms
- make
- bzip2
- perl
- libxcrypt-compat
- p7zip
- p7zip-plugins
vars/Ubuntu.yml
# List of packages needed for compilation
virtualbox_guest_packages:
- build-essential
- dkms
# - linux-headers-{{ ansible_kernel }}
- linux-headers-generic
- p7zip-full
Example Playbook
molecule/default/converge.yml
- name: sample playbook for role 'virtualbox_guest'
hosts: all
become: 'yes'
vars:
molecule_driver: '{{ lookup(''env'', ''MOLECULE_DRIVER_NAME'') }}'
gnome_desktop_wayland: false
gnome_desktop_autologin_enable: true
gnome_desktop_autologin: vagrant
gnome_desktop_lock_disable: true
gnome_desktop_lock_timeout: 0
roles:
- deitkrachten.gnome_desktop
tasks:
- name: Include role 'virtualbox_guest'
ansible.builtin.include_role:
name: virtualbox_guest