2017-11-22 10:06:47 +01:00
|
|
|
---
|
|
|
|
# file roles/autoinstall-virtualbox-guest/tasks/main.yml
|
|
|
|
|
|
|
|
- name: install virtualbox guest additions
|
|
|
|
block:
|
|
|
|
- name: install packages
|
|
|
|
apt:
|
|
|
|
state: present
|
|
|
|
name: '{{ item }}'
|
|
|
|
with_items:
|
|
|
|
- dkms
|
2018-04-19 12:06:43 +02:00
|
|
|
- virtualbox-guest-x11-hwe
|
|
|
|
- virtualbox-guest-dkms-hwe
|
|
|
|
- virtualbox-guest-x11-hwe
|
2017-11-22 10:56:21 +01:00
|
|
|
|
|
|
|
# TODO: set xineliboutput as frontend
|
2017-11-22 10:06:47 +01:00
|
|
|
when:
|
|
|
|
- ansible_virtualization_type == "virtualbox"
|
|
|
|
- ansible_virtualization_role == "guest"
|
|
|
|
- ansible_distribution == "Ubuntu"
|
2018-02-12 16:37:41 +01:00
|
|
|
|
|
|
|
- name: set xineliboutput as frontend
|
2018-02-12 16:40:58 +01:00
|
|
|
block:
|
|
|
|
- apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: present
|
|
|
|
with_items:
|
|
|
|
- vdr-plugin-xineliboutput
|
|
|
|
- xineliboutput-sxfe
|
|
|
|
- command: '{{ item }}'
|
|
|
|
with_items:
|
|
|
|
- vdrctl disable softhddevice
|
|
|
|
- vdrctl disable vaapidevice
|
|
|
|
- vdrctl disable xine
|
|
|
|
- vdrctl disable pvr350
|
|
|
|
- vdrctl enable xineliboutput
|
|
|
|
ignore_errors: yes
|
2018-02-12 16:37:41 +01:00
|
|
|
when:
|
2018-09-04 13:21:32 +02:00
|
|
|
- ansible_virtualization_type == "virtualbox" or ansible_virtualization_type == "VMware"
|
2018-02-12 16:37:41 +01:00
|
|
|
- ansible_virtualization_role == "guest"
|