🗑️ remove(ansible): entire config

not planned to use
This commit is contained in:
Sergio Laín 2025-04-28 10:43:32 +02:00
parent 684e0ffbfa
commit 62aef0e89b
No known key found for this signature in database
GPG key ID: 51BB28D8B42FB438
99 changed files with 0 additions and 855 deletions

View file

@ -1,3 +0,0 @@
<div align="center">
<a href=""><img src="./title.png"></a>
</div>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 27 KiB

View file

@ -1,9 +0,0 @@
- name: Setup Arch Linux
hosts: local
roles:
- role: system
vars:
role_path: roles/arch
- role: packages
vars:
role_path: roles/arch

View file

@ -1,9 +0,0 @@
- name: Setup Debian Linux
hosts: local
roles:
- role: system
vars:
role_path: roles/debian
- role: packages
vars:
role_path: roles/debian

View file

@ -1,15 +0,0 @@
[target_arch_machines]
localhost
# 10.0.19.165
# 10.0.19.160
# 10.0.19.153
# arch-docker-host
# archlinuxx
# 192.168.1.50
[all:vars]
ansible_connection=local
# ansible_connection=ssh
# ansible_user=spravca
# ansible_ssh_pass=aaa
# ansible_sudo_pass=aaa

View file

@ -1,4 +0,0 @@
---
collections:
- name: community.general
- name: kewlfft.aur

View file

@ -1,33 +0,0 @@
# PACMAN
- name: Install AMD Drivers
become: true
pacman:
update_cache: yes
name:
# Open Source
- xf86-video-amdgpu
- vulkan-radeon
- lib32-vulkan-radeon
- vulkan-tools
- opencl-clover-mesa
- lib32-opencl-clover-mesa
- libva-mesa-driver
- lib32-libva-mesa-driver
- mesa
- lib32-mesa
- mesa-vdpau
- lib32-mesa-vdpau
- vdpauinfo
- clinfo
- rocm-hip-sdk
# AUR
- name: Install AUR Packages
become: true
become_user: aur_builder
aur:
use: yay
name:
# Propietary
- amf-amdgpu-pro
- vulkan-amdgpu-pro

View file

@ -1,15 +0,0 @@
- name: Install Intel Drivers
become: true
pacman:
update_cache: yes
name:
- xf86-video-intel
- vulkan-intel
- libva-intel-driver
- lib32-vulkan-intel
- vulkan-tools
- lib32-libva-intel-driver
- mesa
- lib32-mesa
- mesa-vdpau
- lib32-mesa-vdpau

View file

@ -1,14 +0,0 @@
- name: Install NVIDIA Drivers
become: true
pacman:
update_cache: yes
name:
- nvidia
- nvidia-utils
- nvidia-settings
- opencl-nvidia
- lib32-nvidia-utils
- lib32-opencl-nvidia
- cuda
- vdpauinfo
- clinfo

View file

@ -1,69 +0,0 @@
- name: Ask user for type of install and GPU drivers
hosts: all
become: true
gather_facts: false
vars_prompt:
- name: gpu_driver_choice
prompt: "What drivers do you want for your gpu?"
choices:
- "NVIDIA"
- "AMD"
- "Intel"
private: no
- name: enable_coding_module
prompt: "Do you want to install the coding packages?"
type: list
choices:
- "Yes"
- "No"
private: no
- name: enable_gaming_module
prompt: "Do you want to install the gaming packages?"
type: list
choices:
- "Yes"
- "No"
private: no
- name: enable_multimedia_module
prompt: "Do you want to install the multimedia packages?"
type: list
choices:
- "Yes"
- "No"
private: no
- name: enable_vm_module
prompt: "Do you want to install the vm packages?"
type: list
choices:
- "Yes"
- "No"
private: no
block:
- name: Install base packages for the system
include_tasks: "modules/base.yml"
- name: Install GPU drivers
include_tasks: "drivers/{{ gpu_driver_choice | lower }}.yml"
when: gpu_driver_choice is defined
- name: Install coding packages
include_tasks: "modules/coding.yml"
when: enable_coding_module == "Yes"
- name: Install gaming packages
include_tasks: "modules/gaming.yml"
when: enable_gaming_module == "Yes"
- name: Install multimedia packages
include_tasks: "modules/multimedia.yml"
when: enable_multimedia_module == "Yes"
- name: Install vm packages
include_tasks: "modules/vm.yml"
when: enable_vm_module == "Yes"

View file

@ -1,165 +0,0 @@
# PACMAN
- name: Install Pacman Packages
pacman:
name:
# Microcode
- amd-ucode
- intel-ucode
# System
- base
- base-devel
- polkit-gnome
- clamtk
- qt5ct
- reflector
- ufw
- xdg-user-dirs
- udiskie
# Android
- android-file-transfer
- android-tools
- scrcpy
# WM
- hyprland
- hyprlock
- hypridle
- hyprpicker
- wev
- swaync
- satty
- waybar
- wl-clipboard
- xdg-desktop-portal-hyprland
- kitty
- rofi-wayland
# File Manager
- yazi
- nemo
- nemo-fileroller
- nemo-image-converter
# Fonts
- ttf-font-awesome
- ttf-nerd-fonts-symbols
- ttf-nerd-fonts-symbols-mono
- ttf-jetbrains-mono-nerd
# Tools
- baobab
- cliphist
- galculator
- gnome-logs
- gparted
- playerctl
- slurp
- grim
- nm-connection-editor
- xwaylandvideobridge
- gnome-keyring
- protonmail-bridge
# Bluetooth
- bluez
# CLI / TUI
- bat
- btop
- eza
- fd
- fzf
- nvtop
- duf
- dua-cli
- ripgrep
- ripgrep-all
- sd
- jq
- fastfetch
# Productivity
- libreoffice-fresh
- obsidian
- thunderbird
- zathura
- zathura-pdf-mupdf
# Multimedia
- geeqie
- imagemagick
- mpv
- pavucontrol
- wine
- winetricks
# AUR
- name: Create the `aur_builder` user
become: true
ansible.builtin.user:
name: aur_builder
create_home: yes
group: wheel
- name: Allow the `aur_builder` user to run `sudo pacman` without a password
become: true
ansible.builtin.lineinfile:
path: /etc/sudoers.d/11-install-aur_builder
line: "aur_builder ALL=(ALL) NOPASSWD: /usr/bin/pacman"
create: yes
validate: "visudo -cf %s"
- name: Install AUR Packages
become: true
become_user: aur_builder
aur:
use: yay
name:
# Browser
- brave-bin
- zen-browser-avx0-bin
# WM
- swayosd-git
- swww
- nwg-displays
- nwg-look
- pyprland
- waybar-updates
# Hooks
- check-broken-packages-pacman-hook-git
- reflector-pacman-hook-git
- sync-pacman-hook-git
- needrestart
- paccache-hook
# Bluetooth
- overskride
# CLI / TUI
- cava
- pacseek
- gtrash-bin
- sysz
- topgrade
- tgpt-bin
# Tools
- auto-cpufreq
- devify
- upscayl-bin
- downgrade
- android-sdk-platform-tools
- pika-backup
- rar
# Theme
- catppuccin-gtk-theme-macchiato
- catppuccin-cursors-macchiato
- ttf-ms-win11-auto
# Multimedia
- vesktop-bin

View file

@ -1,64 +0,0 @@
# PACMAN
- name: Install Pacman Packages
pacman:
name:
# Web
- yarn
- npm
- nodejs
# Python
- python-pip
- python-pipx
# Rust
- rustup
# Go
- go
# Lua
- lua
- luarocks
# Tools
- github-cli
- dbeaver
- git-delta
- lazygit
- onefetch
- tmux
# Neovim
- neovide
- bob
- vim
# AUR
- name: Install AUR Packages
become: true
become_user: aur_builder
aur:
use: yay
name:
- lazynpm
- scc-bin
- tgpt-bin
- vscodium-bin
- vscodium-marketplace-bin
- mise-bin
# Cargo
- name: Install Rust Packages
cargo:
name:
- cargo-update
- cargo-binstall
# Npm
- name: Install Npm Packages
npm:
name:
- commitizen
- cz-git
global: true

View file

@ -1,43 +0,0 @@
# PACMAN
- name: Install Pacman Packages
pacman:
name:
# Launchers
- steam
# Emulators
- retroarch
# Tools
- gamemode
- mangohud
# AUR
- name: Install AUR Packages
become: true
become_user: aur_builder
aur:
use: yay
name:
# Launchers
- heroic-games-launcher-bin
- atlauncher-bin
# Emulators
- dolphin-emu
- cemu-bin
- duckstation-git
- gzdoom
- rpcs3-bin
- ryujinx-bin
- pcsx2-latest-bin
- xemu-bin
# Tools
- proton-ge-custom-bin
- vkbasalt
- ludusavi
# Others
- adwsteamgtk
- rofi-games

View file

@ -1,34 +0,0 @@
# PACMAN
- name: Install Pacman Packages
pacman:
name:
# Audio
- easyeffects
- gst-plugins-base
- lsp-plugins
- qpwgraph
# Video
- obs-studio
- blender
# Image
- pinta
- krita
# Downloaders
- yt-dlp
- name: Install AUR Packages
become: true
become_user: aur_builder
aur:
use: yay
name:
# Audio
- spicetify-cli
- spotify
# Downloaders
- gallery-dl
- spotdl

View file

@ -1,13 +0,0 @@
# PACMAN
- name: Install Pacman Packages
pacman:
name:
- qemu-full
- virt-manager
- virt-viewer
- dnsmasq
- bridge-utils
- libguestfs
- ebtables
- vde2
- openbsd-netcat

View file

@ -1,6 +0,0 @@
[terminal]
vt = 8
[default_session]
command = "tuigreet --remember --time -c 'Hyprland > /dev/null 2>&1'"
user = "greeter"

View file

@ -1,5 +0,0 @@
[Unit]
After=multi-user.target
[Service]
Type=idle

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 558 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 297 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 639 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 374 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 549 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 515 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 711 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 600 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 540 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 568 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 673 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 417 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 722 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 722 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 648 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 482 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 130 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 445 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 989 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 772 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 454 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 628 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 617 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 219 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 183 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 633 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 722 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 321 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 712 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 319 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 431 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 84 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 138 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

View file

@ -1,50 +0,0 @@
# GRUB2 gfxmenu pop theme, based and inspired by Vimix and Dracula grub themes
# Designed for any resolution
# Global Property
title-text: ""
desktop-image: "background.png"
desktop-image-scale-method: "stretch"
desktop-color: "#24273A"
terminal-font: "Unifont Regular 16"
terminal-left: "0"
terminal-top: "0"
terminal-width: "100%"
terminal-height: "100%"
terminal-border: "0"
# Logo image
+ image {
left = 50%-50
top = 50%-50
file = "logo.png"
}
# Show the boot menu
+ boot_menu {
left = 50%-240
top = 60%
width = 480
height = 30%
item_font = "Unifont Regular 16"
item_color = "#CAD3F5"
selected_item_color = "#CAD3F5"
icon_width = 32
icon_height = 32
item_icon_space = 20
item_height = 36
item_padding = 5
item_spacing = 10
selected_item_pixmap_style = "select_*.png"
}
# Show a countdown message using the label component
+ label {
top = 82%
left = 35%
width = 30%
align = "center"
id = "__timeout__"
text = "Booting in %d seconds"
color = "#CAD3F5"
}

View file

@ -1,3 +0,0 @@
- name: update_repos
pacman:
update_cache: yes

View file

@ -1,9 +0,0 @@
- name: System Tasks
hosts: all
become: true
block:
- name: System Tasks
include_tasks: system.yml
- name: System Services Tasks
include_tasks: services.yml

View file

@ -1,160 +0,0 @@
# SSH
- name: install ssh
pacman:
name:
- openssh
- name: enable and start ssh service
systemd:
name: sshd
enabled: yes
state: started
# PLOCATE
- name: install plocate
pacman:
name:
- plocate
- name: enable and start ~12h updatedb timer
systemd:
name: plocate-updatedb.timer
enabled: yes
state: started
# ARCH KEYRING WEEKLY UPDATE
- name: archlinux-keyring - enable weekly update
systemd:
name: archlinux-keyring-wkd-sync.timer
enabled: yes
state: started
# SDD TRIM
- name: install util-linux
pacman:
name:
- util-linux
- name: enable and start weekly ssd disks trim using fstrim timer
systemd:
name: fstrim.timer
enabled: yes
state: started
# REFLECTOR
- name: install reflector
pacman:
name:
- reflector
- name: write reflector configuration file
copy:
dest: "/etc/xdg/reflector/reflector.conf"
content: |
--save /etc/pacman.d/mirrorlist
--protocol http
--country Spain
--country France
--country Germany
--country Portugal
--country Italy
--country United_Kingdom
--latest 20
--score 20
--sort rate
- name: enable and start reflector timer
systemd:
name: reflector.timer
enabled: yes
state: started
- name: do initial run of reflector.service
systemd:
name: reflector
enabled: yes
state: started
# LOGROTATE
- name: install logrotate
pacman:
name:
- logrotate
- name: logrotate - enable compression
lineinfile:
path: /etc/logrotate.conf
regexp: "^#compress$"
line: "compress"
- name: enable and start daily logs rotation, cleanup
systemd:
name: logrotate.timer
enabled: yes
state: started
# DOCKER
- name: install docker and docker compose
pacman:
update_cache: yes
name:
- docker
- docker-compose
- name: install lazydocker
kewlfft.aur.aur:
name:
- lazydocker
- name: docker service
systemd:
name: docker
enabled: yes
state: restarted
- name: add the user to docker group
user:
name: "{{ ansible_user }}"
groups: docker
append: yes
- name: Create /etc/docker directory if it does not exist
file:
path: /etc/docker
state: directory
mode: "0755"
- name: set default max logs size to 250MB and set logs rotation
copy:
dest: "/etc/docker/daemon.json"
content: |
{
"log-driver": "json-file",
"log-opts": {
"max-size": "50m",
"max-file": "5"
}
}
# PIPEWIRE
- name: install pipewire and dependencies
pacman:
name:
- pipewire
- pipewire-alsa
- pipewire-jack
- pipewire-pulse
- wireplumber
- alsa-utils
- name: Pipewire service
systemd:
name: pipewire
state: restarted
enabled: yes
- name: WirePlumber service
systemd:
name: wireplumber
state: restarted
enabled: yes

View file

@ -1,132 +0,0 @@
# First update the system
- name: update arch
pacman:
update_cache: yes
upgrade: yes
# YAY
- name: disable need for password for pacman to allow yay install
lineinfile:
path: /etc/sudoers.d/temp_allow_no_pswd_pacman
state: present
line: "ALL ALL=NOPASSWD: /usr/bin/pacman"
validate: /usr/sbin/visudo -cf %s
create: yes
- name: git clone yay-bin repo in to /tmp
become: false
git:
repo: "https://aur.archlinux.org/yay-bin.git"
dest: /tmp/yay-bin
clone: yes
- name: install yay using makepkg
become: false
expect:
chdir: /tmp/yay-bin
command: makepkg -si
responses:
(?i)Proceed with installation: "y"
- name: re-enable need for password for pacman
file:
path: /etc/sudoers.d/temp_allow_no_pswd_pacman
state: absent
# PACMAN-PACKAGES
- name: pacman - enable color
lineinfile:
path: /etc/pacman.conf
regexp: "^#Color$"
line: "Color"
- name: pacman - enable ParallelDownloads = 5
lineinfile:
path: /etc/pacman.conf
regexp: "#ParallelDownloads = 5"
line: "ParallelDownloads = 5"
- name: makepkg - disable compression
lineinfile:
path: /etc/makepkg.conf,
regexp: "PKGEXT='.pkg.tar.zst'"
line: "PKGEXT='.pkg.tar'"
- name: makepkg - enable parallel compilation MAKEFLAGS="-j$(nproc)"
lineinfile:
path: /etc/makepkg.conf
regexp: '#MAKEFLAGS="-j2"'
line: 'MAKEFLAGS="-j$(nproc)"'
- name: add multilib repo
become: true
ini_file:
path: /etc/pacman.conf
section: "multilib"
option: "Include"
value: "/etc/pacman.d/mirrorlist"
notify: update_repos
- name: Create hooks directory
become: true
file:
path: /etc/pacman.d/hooks
state: directory
- name: Move hooks
become: true
synchronize:
src: ~/.config/pacman/hooks/
dest: /etc/pacman.d/hooks/
delegate_to: localhost
# FISH
- name: intall fish, fisher and other tools
pacman:
name:
- fish
- fisher
- atuin
- zoxide
- starship
- vivid
- name: change default shell to fish for the local user
user:
name: "{{ ansible_user }}"
shell: /usr/bin/fish
# OTHER
- name: fstab change relatime to noatime
replace:
path: /etc/fstab
regexp: "relatime"
replace: "noatime"
- name: change number of failed logins that triger 10min lockout
lineinfile:
path: /etc/security/faillock.conf
regexp: "^# deny = 3$"
line: "deny = 10"
- name: enable members of wheel group to sudo
lineinfile:
path: /etc/sudoers.d/01_wheel_allow_sudo
state: present
line: "%wheel ALL=(ALL:ALL) ALL"
validate: /usr/sbin/visudo -cf %s
create: yes
# Greeter
- name: install greeter
pacman:
name:
- greetd
- greetd-tuigreet
- name: enable and start greeter
systemd:
name: greetd
enabled: yes
state: restarted
# GRUB