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

19 lines
615 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
- 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
- name: Update APT cache
apt:
update_cache: true
when: apt_repository.changed
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