From 4ba50bb2510e36c228a592aca0ab8a4d66d0c6cd Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 28 Nov 2022 20:13:24 +0100 Subject: [PATCH] install virtualbox fix neovim install --- README.md | 1 + roles/system/tasks/main.yml | 25 +++++++++++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index bf5a2a4..ff991e0 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,4 @@ - Telegram (maybe only possible to download) - Oh my zsh? - Cool neovim setup +- wireshark diff --git a/roles/system/tasks/main.yml b/roles/system/tasks/main.yml index 15bda75..89a1b52 100644 --- a/roles/system/tasks/main.yml +++ b/roles/system/tasks/main.yml @@ -18,6 +18,16 @@ apt_repository: repo: "deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc ] https://download.vscodium.com/debs vscodium main" state: present +- 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: Update repositories become: true apt: @@ -44,6 +54,8 @@ - signal-desktop - nextcloud-desktop - codium + - tree + - virtualbox-6.1 # Erlang stuff: https://github.com/asdf-vm/asdf-erlang#before-asdf-install - build-essential - autoconf @@ -106,24 +118,21 @@ - name: Install VSCodium extensions shell: "codium --install-extension {{ item }}" loop: "{{ vscodium_extensions | difference(ansible_facts.ansible_local.vscodium_extensions) }}" -- name: Create git repository directory - file: - path: ~/repos - state: directory - name: Pull neovim repository + become: true git: repo: https://github.com/neovim/neovim.git - dest: ~/repos/neovim - version: stable + dest: ~/neovim - name: Build neovim + become: true make: - chdir: ~/repos/neovim + chdir: ~/neovim params: CMAKE_BUILD_TYPE: RelWithDebInfo changed_when: false # I lie a bit, but neovim makefile doesn't cooperate - name: Install neovim become: true make: - chdir: "/home/{{ ansible_user_id }}/repos/neovim" + chdir: ~/neovim target: install changed_when: false # Idem