Add vboxuser group and modprobe network modules for virtualbox

This commit is contained in:
Bertrand Benjamin 2018-08-26 11:46:18 +02:00
parent b5137197d8
commit dd4e5a51cc
1 changed files with 14 additions and 0 deletions

View File

@ -6,6 +6,10 @@
with_items:
- virtualbox
- name: Ensure group vboxuser exists
group:
name: vboxuser
state: present
- name: Add me user to vboxuser group
user:
@ -13,3 +17,13 @@
groups: vboxuser
append: yes
with_items: '{{ deploy_users }}'
- name: Add the vboxnetadp module
modprobe:
name: vboxnetadp
state: present
- name: Add the vboxnetflt module
modprobe:
name: vboxnetflt
state: present