2018-08-25 18:12:57 +00:00
|
|
|
---
|
|
|
|
- name: Install virtualbox
|
|
|
|
pacman:
|
2018-10-08 09:01:58 +00:00
|
|
|
name:
|
|
|
|
- virtualbox
|
2018-11-11 10:09:33 +00:00
|
|
|
- virtualbox-guest-utils
|
2018-08-25 18:12:57 +00:00
|
|
|
state: present
|
|
|
|
|
2018-08-26 09:46:18 +00:00
|
|
|
- name: Ensure group vboxuser exists
|
|
|
|
group:
|
|
|
|
name: vboxuser
|
|
|
|
state: present
|
2018-08-25 18:12:57 +00:00
|
|
|
|
2018-08-26 09:42:23 +00:00
|
|
|
- name: Add me user to vboxuser group
|
|
|
|
user:
|
|
|
|
name: "{{ item.username }}"
|
2018-11-11 15:45:37 +00:00
|
|
|
groups: vboxusers
|
2018-08-26 09:42:23 +00:00
|
|
|
append: yes
|
2018-11-11 15:45:37 +00:00
|
|
|
with_items: '{{ me }}'
|
2018-08-26 09:46:18 +00:00
|
|
|
|
2018-11-11 15:45:37 +00:00
|
|
|
# - name: Add the vboxdrv module
|
|
|
|
# modprobe:
|
|
|
|
# name: vboxdrv
|
|
|
|
# state: present
|
2018-11-11 09:51:06 +00:00
|
|
|
|
2018-11-11 15:50:47 +00:00
|
|
|
# - name: Add the vboxnetadp module
|
|
|
|
# modprobe:
|
|
|
|
# name: vboxnetadp
|
|
|
|
# state: present
|
|
|
|
#
|
|
|
|
# - name: Add the vboxnetflt module
|
|
|
|
# modprobe:
|
|
|
|
# name: vboxnetflt
|
|
|
|
# state: present
|