Skip to content

Commit

Permalink
Add maintained virtualbox installation script and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Mycobee committed Jun 28, 2023
1 parent 1995deb commit 98be576
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 39 deletions.
10 changes: 5 additions & 5 deletions automated_builder/gather_build_logs.yml
Expand Up @@ -22,16 +22,16 @@
- name: Gather facts
setup:

- name: Copy virtualbox_install log
fetch:
src: "/home/ansible/virtualbox_install.log"
dest: "./logs/virtualbox_install.log"

- name: Copy install_source log
fetch:
src: "/home/ansible/install_source.log"
dest: "./logs/install_source.log"

- name: Check logs
shell: "ls"
register: pwd
delegate_to: 127.0.0.1

- name: Copy gateway_build log
fetch:
src: "/home/ansible/gateway_build.log"
Expand Down
25 changes: 9 additions & 16 deletions automated_builder/roles/common/tasks/install_dependencies.yml
Expand Up @@ -2,6 +2,12 @@
- name: Install dependencies
become: true
block:
- name: Update and upgrade
apt:
update_cache: true
upgrade: true
allow_change_held_packages: true

- name: Install apt packages
apt:
pkg:
Expand All @@ -18,19 +24,6 @@
- software-properties-common
update_cache: true

- name: Install VirtualBox
include_tasks: install_virtualbox.yml

- name: Register LSB release
shell: "lsb_release -cs"
register: lsb_release

- name: Add VirtualBox apt repository
apt_repository:
repo: "deb [arch=amd64 signed-by=/usr/share/keyrings/{{ VBOX_ASC_KEY.name }}.asc.gpg] http://download.virtualbox.org/virtualbox/debian {{ lsb_release.stdout }} contrib"
state: present

- name: Install VirtualBox apt repository
apt:
name: "virtualbox-7.0"
update_cache: true
- name: Run maintained VirtualBox installation script
become: false
shell: "/home/ansible/derivative-maker/packages/kicksecure/usability-misc/usr/bin/installer-dist --non-interactive --virtualbox-only --log-level=info > /home/ansible/virtualbox_install.log"
18 changes: 0 additions & 18 deletions automated_builder/roles/common/tasks/install_virtualbox.yml

This file was deleted.

0 comments on commit 98be576

Please sign in to comment.