This commit is contained in:
user
2023-07-15 19:39:13 -05:00
parent 8ec6063d6f
commit 9c2035e09c
19 changed files with 196 additions and 227 deletions

View File

@@ -1,2 +1,8 @@
---
nvim_version: v0.9.1
go_verison: go1.20.5
s76keyboard_version: 1.3.7
fonts:
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraMono.zip, name: 'Fira*Mono*'}
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/Go-Mono.zip, name: 'GoMonoNerdFont-*'}
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraCode.zip, name: 'Fira*Code*'}

View File

@@ -1,61 +1,12 @@
- name: add apt repository key
apt_key:
url: "{{ item }}"
with_items: "{{ apt_keys }}"
become: yes
- name: "Install apt"
include_tasks: "../scripts/install_apt.yml"
- name: add apt repository
apt_repository:
repo: "{{ item }}"
with_items: "{{ apt_repo }}"
become: yes
- name: Upgrade Packages
package:
update_cache: yes
upgrade: safe
become: yes
- name: Install Packages
apt:
state: latest
update_cache: yes
pkg: "{{ required_packages }}"
become: yes
when: required_packages is defined
- name: ensure fonts directory
become_user: user
file:
path: "~/.fonts"
state: directory
- name: FiraCode exists
become_user: user
shell: "ls ~/.fonts/*{{ item.name }}*"
register: FiraCode_exists
ignore_errors: yes
with_items: "{{ fonts }}"
- name: Download FiraCode
when: FiraCode_exists is failed
become_user: user
ansible.builtin.unarchive:
src: "{{ item.url }}"
dest: "~/.fonts/"
remote_src: yes
with_items: "{{ fonts }}"
- name: "Install flatpak"
include_tasks: "../scripts/install_flatpak.yml"
- name: Enable wayland
shell: sed -i 's/WaylandEnable=false/WaylandEnable=true/' /etc/gdm3/custom.conf
- name: download Nvim
ansible.builtin.get_url:
url: "https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage"
dest: /usr/bin/nvim
mode: '0755'
checksum: sha256:https://github.com/neovim/neovim/releases/download/{{ nvim_version }}/nvim.appimage.sha256sum
- name: Start and enable services
ansible.builtin.systemd:
state: started
@@ -69,3 +20,4 @@
groups: "{{ item }}"
append: yes
with_items: "{{ groups_to_add }}"

View File

@@ -6,5 +6,17 @@
- "vars/{{ ansible_os_family }}.yml"
- "vars/defaults.yml"
- name:
- name: "OS dependant"
include_tasks: "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
- name: "Install fonts"
include_tasks: "../scripts/install_fonts.yml"
- name: "Install nvim"
include_tasks: "../scripts/install_nvim.yml"
- name: "Install Go"
include_tasks: "../scripts/install_go.yml"
- name: Configure Gitlab SSH Key
ansible.builtin.command: pwsh -f ./scripts/configure-ssh.ps1 '{{ lookup('ansible.builtin.env', 'GITLAB_TOKEN') }}'

View File

@@ -1,4 +1,3 @@
required_packages:
- ripgrep
- ansible
@@ -15,6 +14,14 @@ required_packages:
- qemu-kvm
- virt-manager
- stow
- tmux
- terminator
- system76-keyboard-configurator
- xsel
- openvpn
- easy-rsa
- docker.io
- httpie
apt_keys:
- https://packages.cloud.google.com/apt/doc/apt-key.gpg
@@ -29,6 +36,7 @@ apt_repo:
required_flatpak_packages:
- io.gitlab.librewolf-community
- com.brave.Browser
- com.bitwarden.desktop
- com.discordapp.Discord
- com.makemkv.MakeMKV
@@ -37,20 +45,16 @@ required_flatpak_packages:
- org.remmina.Remmina
- org.signal.Signal
- org.videolan.VLC
- com.spotify.Client
services_to_enable:
- libvirtd.service
fonts:
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraMono.zip, name: 'Fira*Mono*'}
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/Go-Mono.zip, name: 'GoMonoNerdFont-*'}
- {url: https://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.2/FiraCode.zip, name: 'Fira*Code*'}
groups_to_add:
- adm
- libvirt
- kvm
- input
- disk
- disk
- docker