install virtualbox

fix neovim install
This commit is contained in:
Pim Kunis 2022-11-28 20:13:24 +01:00
parent 6d34fe9903
commit 4ba50bb251
2 changed files with 18 additions and 8 deletions

View file

@ -12,3 +12,4 @@
- Telegram (maybe only possible to download) - Telegram (maybe only possible to download)
- Oh my zsh? - Oh my zsh?
- Cool neovim setup - Cool neovim setup
- wireshark

View file

@ -18,6 +18,16 @@
apt_repository: apt_repository:
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc ] https://download.vscodium.com/debs vscodium main" repo: "deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc ] https://download.vscodium.com/debs vscodium main"
state: present 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 - name: Update repositories
become: true become: true
apt: apt:
@ -44,6 +54,8 @@
- signal-desktop - signal-desktop
- nextcloud-desktop - nextcloud-desktop
- codium - codium
- tree
- virtualbox-6.1
# Erlang stuff: https://github.com/asdf-vm/asdf-erlang#before-asdf-install # Erlang stuff: https://github.com/asdf-vm/asdf-erlang#before-asdf-install
- build-essential - build-essential
- autoconf - autoconf
@ -106,24 +118,21 @@
- name: Install VSCodium extensions - name: Install VSCodium extensions
shell: "codium --install-extension {{ item }}" shell: "codium --install-extension {{ item }}"
loop: "{{ vscodium_extensions | difference(ansible_facts.ansible_local.vscodium_extensions) }}" loop: "{{ vscodium_extensions | difference(ansible_facts.ansible_local.vscodium_extensions) }}"
- name: Create git repository directory
file:
path: ~/repos
state: directory
- name: Pull neovim repository - name: Pull neovim repository
become: true
git: git:
repo: https://github.com/neovim/neovim.git repo: https://github.com/neovim/neovim.git
dest: ~/repos/neovim dest: ~/neovim
version: stable
- name: Build neovim - name: Build neovim
become: true
make: make:
chdir: ~/repos/neovim chdir: ~/neovim
params: params:
CMAKE_BUILD_TYPE: RelWithDebInfo CMAKE_BUILD_TYPE: RelWithDebInfo
changed_when: false # I lie a bit, but neovim makefile doesn't cooperate changed_when: false # I lie a bit, but neovim makefile doesn't cooperate
- name: Install neovim - name: Install neovim
become: true become: true
make: make:
chdir: "/home/{{ ansible_user_id }}/repos/neovim" chdir: ~/neovim
target: install target: install
changed_when: false # Idem changed_when: false # Idem