split into roles

This commit is contained in:
Pim Kunis 2022-12-02 20:10:38 +01:00
parent 4d072894ec
commit 74b67b7e27
17 changed files with 186 additions and 110 deletions

View file

@ -0,0 +1,18 @@
- name: Get VirtualBox APT key
become: true
get_url:
url: https://www.virtualbox.org/download/oracle_vbox_2016.asc
dest: /etc/apt/trusted.gpg.d/oracle_vbox_2016.asc
- name: Install VirtualBox APT repository
become: true
apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/oracle_vbox_2016.asc] https://download.virtualbox.org/virtualbox/debian {{ ansible_distribution_release }} contrib"
state: present
- name: Install VirtualBox
become: true
apt:
state: latest
update_cache: yes
cache_valid_time: 86400 # One day
pkg:
- virtualbox-6.1