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