add role for virtualbox guest utilities installation
workaround for Ubuntu 16.04
This commit is contained in:
parent
d08d060439
commit
885b5bd893
18
roles/autoinstall-virtualbox-guest/tasks/main.yml
Normal file
18
roles/autoinstall-virtualbox-guest/tasks/main.yml
Normal file
@ -0,0 +1,18 @@
|
||||
---
|
||||
# file roles/autoinstall-virtualbox-guest/tasks/main.yml
|
||||
|
||||
- name: install virtualbox guest additions
|
||||
block:
|
||||
- name: install packages
|
||||
apt:
|
||||
state: present
|
||||
name: '{{ item }}'
|
||||
with_items:
|
||||
- virtualbox-guest-dkms
|
||||
- virtualbox-guest-x11
|
||||
- dkms
|
||||
when:
|
||||
- ansible_virtualization_type == "virtualbox"
|
||||
- ansible_virtualization_role == "guest"
|
||||
- ansible_distribution == "Ubuntu"
|
||||
- ansible_distribution_version == "16.04"
|
Loading…
Reference in New Issue
Block a user