2017-06-20 16:38:38 +02:00
|
|
|
---
|
|
|
|
# file roles/autoinstall-ubuntu-drivers/tasks/main.yml
|
2017-06-20 15:09:15 +02:00
|
|
|
|
2017-11-22 10:09:51 +01:00
|
|
|
- name: autoinstall ubuntu-drivers-common
|
|
|
|
block:
|
|
|
|
- name: apt | install ubuntu-drivers-common
|
|
|
|
apt:
|
|
|
|
name: ubuntu-drivers-common
|
|
|
|
state: present
|
2017-06-20 15:09:15 +02:00
|
|
|
|
2017-11-22 10:56:21 +01:00
|
|
|
- name: use ubuntu-drivers to install additional drivers automatically
|
2017-11-22 10:09:51 +01:00
|
|
|
command: ubuntu-drivers --package-list /etc/yavdr/autoinstalled autoinstall
|
2018-04-19 11:55:03 +02:00
|
|
|
when: (ansible_virtualization_type != "virtualbox" and ansible_virtualization_role != "guest")
|
2017-12-16 18:58:57 +01:00
|
|
|
# ubuntu-drivers-common tries to autoinstall
|
2018-04-19 11:55:03 +02:00
|
|
|
# conflicting packages for virtualbox in Ubuntu 16.04 and 18.04 :(
|