35 lines
618 B
YAML
35 lines
618 B
YAML
---
|
|
- name: Install virtualbox
|
|
pacman:
|
|
name:
|
|
- virtualbox
|
|
- virtualbox-guest-utils
|
|
state: present
|
|
|
|
- name: Ensure group vboxuser exists
|
|
group:
|
|
name: vboxuser
|
|
state: present
|
|
|
|
- name: Add me user to vboxuser group
|
|
user:
|
|
name: "{{ item.username }}"
|
|
groups: vboxusers
|
|
append: yes
|
|
with_items: '{{ me }}'
|
|
|
|
# - name: Add the vboxdrv module
|
|
# modprobe:
|
|
# name: vboxdrv
|
|
# state: present
|
|
|
|
- name: Add the vboxnetadp module
|
|
modprobe:
|
|
name: vboxnetadp
|
|
state: present
|
|
|
|
- name: Add the vboxnetflt module
|
|
modprobe:
|
|
name: vboxnetflt
|
|
state: present
|