This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/virtualbox/tasks/main.yml

23 lines
675 B
YAML
Raw Normal View History

2022-12-02 19:10:38 +00:00
- 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
2023-02-20 20:49:55 +00:00
tags: update
2022-12-02 19:10:38 +00:00
- 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"
2022-12-20 16:20:36 +00:00
register: apt_repository
2023-02-20 20:49:55 +00:00
tags: update
2022-12-20 16:20:36 +00:00
- name: Update APT cache
2022-12-20 17:31:17 +00:00
become: true
2022-12-20 16:20:36 +00:00
apt:
update_cache: true
when: apt_repository.changed
2023-02-20 20:49:55 +00:00
tags: update
2022-12-02 19:10:38 +00:00
- name: Install VirtualBox
become: true
apt:
2022-12-19 22:27:26 +00:00
name: virtualbox-6.1