2022-11-26 17:31:02 +00:00
|
|
|
- name: Get Signal APT key
|
|
|
|
become: true
|
2022-11-27 19:57:18 +00:00
|
|
|
get_url:
|
2022-11-26 17:31:02 +00:00
|
|
|
url: https://updates.signal.org/desktop/apt/keys.asc
|
|
|
|
dest: /etc/apt/trusted.gpg.d/signal.asc
|
|
|
|
- name: Install Signal APT repository
|
|
|
|
become: true
|
2022-11-27 19:57:18 +00:00
|
|
|
apt_repository:
|
2022-11-26 17:31:02 +00:00
|
|
|
repo: "deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/signal.asc] https://updates.signal.org/desktop/apt xenial main"
|
|
|
|
state: present
|
2022-11-27 19:57:18 +00:00
|
|
|
- name: Get VSCodium APT key
|
|
|
|
become: true
|
|
|
|
get_url:
|
|
|
|
url: https://gitlab.com/paulcarroty/vscodium-deb-rpm-repo/raw/master/pub.gpg
|
|
|
|
dest: /etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc
|
|
|
|
- name: Install VSCodium APT repository
|
|
|
|
become: true
|
|
|
|
apt_repository:
|
|
|
|
repo: "deb [signed-by=/etc/apt/trusted.gpg.d/vscodium-archive-keyring.asc ] https://download.vscodium.com/debs vscodium main"
|
|
|
|
state: present
|
2022-11-26 00:51:20 +00:00
|
|
|
- name: Update repositories
|
|
|
|
become: true
|
|
|
|
apt:
|
|
|
|
upgrade: yes
|
|
|
|
state: latest
|
|
|
|
update_cache: yes
|
|
|
|
cache_valid_time: 86400 # One day
|
|
|
|
- name: Install global packages
|
|
|
|
become: true
|
|
|
|
apt:
|
|
|
|
state: latest
|
|
|
|
pkg:
|
|
|
|
- git
|
|
|
|
- make
|
|
|
|
- keepassxc
|
|
|
|
- zsh
|
2022-11-26 10:34:13 +00:00
|
|
|
- ripgrep
|
2022-11-26 16:58:49 +00:00
|
|
|
- curl
|
2022-11-26 17:11:26 +00:00
|
|
|
- unzip
|
2022-11-26 17:16:41 +00:00
|
|
|
- libreoffice-calc
|
|
|
|
- libreoffice-impress
|
|
|
|
- libreoffice-writer
|
|
|
|
- gimp
|
2022-11-26 17:31:02 +00:00
|
|
|
- signal-desktop
|
2022-11-27 13:30:48 +00:00
|
|
|
- nextcloud-desktop
|
2022-11-27 19:57:18 +00:00
|
|
|
- codium
|
2022-11-26 17:11:26 +00:00
|
|
|
# Erlang stuff: https://github.com/asdf-vm/asdf-erlang#before-asdf-install
|
|
|
|
- build-essential
|
|
|
|
- autoconf
|
|
|
|
- m4
|
|
|
|
- libncurses5-dev
|
|
|
|
- libwxgtk3.0-gtk3-dev
|
|
|
|
- libwxgtk-webview3.0-gtk3-dev
|
|
|
|
- libgl1-mesa-dev
|
|
|
|
- libglu1-mesa-dev
|
|
|
|
- libpng-dev
|
|
|
|
- libssh-dev
|
|
|
|
- unixodbc-dev
|
|
|
|
- xsltproc
|
|
|
|
- fop
|
|
|
|
- libxml2-utils
|
|
|
|
- libncurses-dev
|
|
|
|
- openjdk-11-jdk
|
2022-11-27 22:18:33 +00:00
|
|
|
# Neovim stuff: https://github.com/neovim/neovim/wiki/Building-Neovim#build-prerequisites
|
|
|
|
- ninja-build
|
|
|
|
- gettext
|
|
|
|
- libtool
|
|
|
|
- libtool-bin
|
|
|
|
- automake
|
|
|
|
- cmake
|
|
|
|
- g++
|
|
|
|
- pkg-config
|
|
|
|
- doxygen
|
2022-11-26 00:51:20 +00:00
|
|
|
- name: Set default shell to zsh
|
|
|
|
become: true
|
2022-11-26 10:17:07 +00:00
|
|
|
user:
|
|
|
|
name: "{{ ansible_user_id }}"
|
|
|
|
shell: /usr/bin/zsh
|
2022-11-26 16:33:21 +00:00
|
|
|
- name: Install .gitconfig
|
2022-11-26 10:34:13 +00:00
|
|
|
template:
|
|
|
|
src: "{{ role_path }}/templates/.gitconfig.j2"
|
2022-11-26 16:58:49 +00:00
|
|
|
dest: ~/.gitconfig
|
|
|
|
- name: Install asdf
|
|
|
|
git:
|
|
|
|
repo: https://github.com/asdf-vm/asdf.git
|
|
|
|
dest: ~/.asdf
|
2022-11-26 16:33:21 +00:00
|
|
|
- name: Install .zshrc
|
|
|
|
template:
|
|
|
|
src: "{{ role_path }}/templates/.zshrc.j2"
|
2022-11-26 16:58:49 +00:00
|
|
|
dest: ~/.zshrc
|
2022-11-26 17:11:26 +00:00
|
|
|
- name: Install asdf Erlang plugin
|
|
|
|
shell: asdf plugin add erlang https://github.com/asdf-vm/asdf-erlang.git
|
|
|
|
args:
|
|
|
|
creates: ~/.asdf/plugins/erlang
|
|
|
|
- name: Install asdf Elixir plugin
|
|
|
|
shell: asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
|
|
|
|
args:
|
|
|
|
creates: ~/.asdf/plugins/elixir
|
2022-11-27 13:30:48 +00:00
|
|
|
- name: Install Regolith Xresources file
|
|
|
|
template:
|
|
|
|
src: "{{ role_path }}/templates/Xresources.j2"
|
|
|
|
dest: ~/.config/regolith2/Xresources
|
2022-11-27 19:57:18 +00:00
|
|
|
- name: Check VSCodium extensions
|
|
|
|
setup:
|
|
|
|
fact_path: "{{ role_path }}/facts"
|
|
|
|
- name: Install VSCodium extensions
|
|
|
|
shell: "codium --install-extension {{ item }}"
|
|
|
|
loop: "{{ vscodium_extensions | difference(ansible_facts.ansible_local.vscodium_extensions) }}"
|
2022-11-27 22:18:33 +00:00
|
|
|
- name: Create git repository directory
|
|
|
|
file:
|
|
|
|
path: ~/repos
|
|
|
|
state: directory
|
|
|
|
- name: Pull neovim repository
|
|
|
|
git:
|
|
|
|
repo: https://github.com/neovim/neovim.git
|
|
|
|
dest: ~/repos/neovim
|
|
|
|
version: stable
|
|
|
|
- name: Build neovim
|
|
|
|
make:
|
|
|
|
chdir: ~/repos/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"
|
|
|
|
target: install
|
|
|
|
changed_when: false # Idem
|