2020-10-11 15:09:15 +02:00
|
|
|
---
|
2023-08-27 11:43:02 +02:00
|
|
|
- name: Bootstrap fresh installation
|
2020-10-11 15:09:15 +02:00
|
|
|
hosts: all
|
2023-08-27 11:43:02 +02:00
|
|
|
gather_facts: true
|
2020-10-11 15:09:15 +02:00
|
|
|
roles:
|
2023-08-27 11:43:02 +02:00
|
|
|
# Handle distribution-specific changes before the generic ones
|
|
|
|
- role: system/fedora
|
|
|
|
become: true
|
2022-03-13 01:33:20 +01:00
|
|
|
when: ansible_distribution == "Fedora"
|
2023-08-27 11:43:02 +02:00
|
|
|
|
2023-08-30 15:39:18 +02:00
|
|
|
- role: system/el
|
|
|
|
become: true
|
|
|
|
when: ansible_distribution in [ "AlmaLinux", "CentOS" ]
|
|
|
|
|
2023-08-27 11:43:02 +02:00
|
|
|
# Upgrade all packages and install the basic-bitch ones
|
|
|
|
- role: system/base
|
|
|
|
become: true
|
|
|
|
|
|
|
|
# Enable Flathub repository and install configured flatpaks
|
2023-08-30 15:10:39 +02:00
|
|
|
- role: system/flatpak
|
|
|
|
tags: flatpak
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
# Install Podman and configure UIDs/GIDs for rootless usage
|
|
|
|
- role: system/podman
|
|
|
|
become: true
|
2023-08-30 15:10:39 +02:00
|
|
|
tags: podman
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
# Install and configure SSH server
|
|
|
|
- role: system/sshd
|
|
|
|
become: true
|
2023-08-30 15:10:39 +02:00
|
|
|
tags: sshd
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
# Handle basic user configuration
|
|
|
|
- user/base
|
|
|
|
|
|
|
|
# Shell utilities
|
2023-08-30 15:10:39 +02:00
|
|
|
- role: user/shell/zsh
|
|
|
|
tags: zsh
|
|
|
|
- role: user/shell/tmux
|
|
|
|
tags: tmux
|
|
|
|
- role: user/editors/neovim
|
|
|
|
tags: neovim
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
# Configure git
|
2023-08-30 15:10:39 +02:00
|
|
|
- role: user/git
|
|
|
|
tags: git
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
# Configure ssh
|
2023-08-30 15:10:39 +02:00
|
|
|
- role: user/ssh
|
|
|
|
tags: ssh
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
# Configure Alacritty terminal
|
|
|
|
- role: user/terminals/alacritty
|
|
|
|
tags: alacritty
|
|
|
|
|
|
|
|
# Configure Kitty terminal
|
|
|
|
- role: user/terminals/kitty
|
|
|
|
tags: kitty
|
|
|
|
|
2023-08-30 17:03:59 +02:00
|
|
|
# Install fonts
|
|
|
|
- role: user/fonts
|
|
|
|
tags: fonts
|
|
|
|
|
2023-08-27 11:43:02 +02:00
|
|
|
# Install Bitwarden CLI
|
2023-08-30 15:10:39 +02:00
|
|
|
- role: user/secrets/bw
|
|
|
|
tags: bw
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
# TODO: Install HashiCorp Vault
|
2023-08-30 15:10:39 +02:00
|
|
|
# - role: user/secrets/hcv
|
|
|
|
# tags: hcv
|
2023-08-27 11:43:02 +02:00
|
|
|
|
|
|
|
# Install and configure Emacs
|
|
|
|
- role: user/editors/emacs
|
|
|
|
tags: emacs
|
|
|
|
|
|
|
|
# Install and configure VSCode
|
2023-08-30 15:10:39 +02:00
|
|
|
- role: user/editors/vscode
|
|
|
|
tags: vscode
|