Include more in playbook

This commit is contained in:
exu 2024-10-07 16:39:07 +02:00
parent 9d3683268a
commit 9170e889e1
4 changed files with 211 additions and 170 deletions

View File

@ -227,12 +227,11 @@ cat <<EOF
######################################## ########################################
EOF EOF
# TODO continue here
# reload systemd user scripts # reload systemd user scripts
systemctl --user daemon-reload systemctl --user daemon-reload
# set systemd services for vmware (only if installed) # set systemd services for vmware (only if installed)
# TODO
if [[ $(pacman -Q | grep vmware-workstation) ]]; then if [[ $(pacman -Q | grep vmware-workstation) ]]; then
sudo systemctl enable --now vmware-networks.service || echo "Service failed, continuing" sudo systemctl enable --now vmware-networks.service || echo "Service failed, continuing"
sudo systemctl enable --now vmware-usbarbitrator.service || echo "Service failed, continuing" sudo systemctl enable --now vmware-usbarbitrator.service || echo "Service failed, continuing"
@ -248,6 +247,7 @@ fi
sudo systemctl enable fstrim.timer sudo systemctl enable fstrim.timer
# enable btrfs maintenance timers # enable btrfs maintenance timers
# TODO
if [[ $(pacman -Q | grep btrfsmaintenance) ]]; then if [[ $(pacman -Q | grep btrfsmaintenance) ]]; then
sudo systemctl restart btrfsmaintenance-refresh.service sudo systemctl restart btrfsmaintenance-refresh.service
sudo systemctl enable btrfs-balance.timer sudo systemctl enable btrfs-balance.timer
@ -261,6 +261,7 @@ sudo timedatectl set-ntp true
systemctl --user enable --now ssh-agent systemctl --user enable --now ssh-agent
# enable reflector timer # enable reflector timer
# TODO
if [[ $(pacman -Q | grep reflector) ]]; then if [[ $(pacman -Q | grep reflector) ]]; then
sudo systemctl enable reflector.timer sudo systemctl enable reflector.timer
fi fi
@ -276,12 +277,15 @@ cat <<EOF
EOF EOF
# set systemd and group for vmware (only if installed) # set systemd and group for vmware (only if installed)
# TODO
if [[ $(pacman -Q | grep vmware-workstation) ]]; then if [[ $(pacman -Q | grep vmware-workstation) ]]; then
echo "Setting up group for vmware" echo "Setting up group for vmware"
sudo groupadd -f vmware sudo groupadd -f vmware
sudo gpasswd -a "$USER" vmware 1>/dev/null sudo gpasswd -a "$USER" vmware 1>/dev/null
fi fi
# TODO continue here
# set group for libvirt # set group for libvirt
if [[ $(pacman -Q | grep libvirt) ]]; then if [[ $(pacman -Q | grep libvirt) ]]; then
echo "Setting group for libvirt" echo "Setting group for libvirt"

View File

@ -10,9 +10,16 @@
- ".gtkrc-2.0" - ".gtkrc-2.0"
- ".local" - ".local"
- ".ssh" - ".ssh"
- "etc"
- "scripts" - "scripts"
- name: Copy new files and directories (root)
ansible.builtin.copy:
src: "files/{{ item }}"
dest: "~/{{ item }}"
loop:
- "etc"
become: true
- name: Symlink xdg environment variables - name: Symlink xdg environment variables
ansible.builtin.file: ansible.builtin.file:
src: "~/.config/user-dirs.dirs" src: "~/.config/user-dirs.dirs"
@ -29,3 +36,31 @@
src: "/tmp/bash-cat-with-cat/cat.sh" src: "/tmp/bash-cat-with-cat/cat.sh"
dest: "~/scripts/pieces/cat.sh" dest: "~/scripts/pieces/cat.sh"
mode: "0755" mode: "0755"
- name: Reload user systemd services
ansible.builtin.systemd_service:
daemon_reload: true
- name: Enable fstrim
ansible.builtin.systemd_service:
name: fstrim.timer
state: "started"
enabled: true
become: true
- name: Enable NTP
ansible.builtin.command: timedatectl set-ntp true
become: true
- name: Enable ssh-agent
ansible.builtin.systemd_service:
name: ssh-agent
state: "restarted"
enabled: true
- name: Enable vnstat
ansible.builtin.systemd_service:
name: vnstat
state: "started"
enabled: true
become: true

View File

@ -1,171 +1,174 @@
---
- name: Update packages - name: Update packages
community.general.pacman: community.general.pacman:
update_cache: true update_cache: true
upgrade: true upgrade: true
become: true
- name: Install official packages - name: Install official packages
community.general.pacman: community.general.pacman:
state: present state: present
# select the lines and use 'M-x sort-lines' # select the lines and use 'M-x sort-lines'
name: name:
#- gnome-keyring #- gnome-keyring
#- hdparm #- hdparm
#- libaacs #- libaacs
#- libbluray #- libbluray
#- libcdio #- libcdio
#- libdvdcss #- libdvdcss
#- libdvdnav #- libdvdnav
#- libdvdread #- libdvdread
#- libsecret #- libsecret
#- phonon-qt5-gstreamer #- phonon-qt5-gstreamer
#- seahorse #- seahorse
- aardvark-dns # containers - aardvark-dns # containers
- amd-ucode # microcode - amd-ucode # microcode
- ansible # iac - ansible # iac
- base-devel # devel stuff - base-devel # devel stuff
- bind # dnsutils (nslookup, dig) - bind # dnsutils (nslookup, dig)
- btrfs-progs # btrfs - btrfs-progs # btrfs
- buildah # containers - buildah # containers
- clang - clang
- cmake - cmake
- composer - composer
- discord - discord
- dnsmasq # virtualization - dnsmasq # virtualization
- dosfstools # fat - dosfstools # fat
- e2fsprogs # ext4 - e2fsprogs # ext4
- easyeffects # audio effects - easyeffects # audio effects
- edk2-ovmf # virtualization - edk2-ovmf # virtualization
- emacs-wayland - emacs-wayland
- exfatprogs # exfat - exfatprogs # exfat
- f2fs-tools # f2fs - f2fs-tools # f2fs
- fd - fd
- ffmpeg # multimedia - ffmpeg # multimedia
- firefox # browser - firefox # browser
- firewalld # firewall - firewalld # firewall
- fish # shell - fish # shell
- flatpak # packages - flatpak # packages
- freetype2 # fonts - freetype2 # fonts
- fuse-overlayfs # containers - fuse-overlayfs # containers
- fwupd # firmware - fwupd # firmware
- fwupd-efi # firmware - fwupd-efi # firmware
- gdb - gdb
- git # code - git # code
- git-lfs # code - git-lfs # code
- hunspell # spelling - hunspell # spelling
- hunspell-de # spelling - hunspell-de # spelling
- hunspell-en_gb # spelling - hunspell-en_gb # spelling
- hunspell-en_us # spelling - hunspell-en_us # spelling
- hyphen # spelling - hyphen # spelling
- hyphen-de # spelling - hyphen-de # spelling
- hyphen-en # spelling - hyphen-en # spelling
- imv # image viewer - imv # image viewer
- intel-media-driver # VAAPI - intel-media-driver # VAAPI
- intel-ucode # microcode - intel-ucode # microcode
- jre-openjdk # java - jre-openjdk # java
- just # command runner - just # command runner
- kde-applications-meta # kde - kde-applications-meta # kde
- kid3 # music metadata - kid3 # music metadata
- krita - krita
- languagetool - languagetool
- lib32-mesa # video driver - lib32-mesa # video driver
- lib32-vulkan-intel # video driver - lib32-vulkan-intel # video driver
- lib32-vulkan-radeon # video driver - lib32-vulkan-radeon # video driver
- libreoffice-fresh # office - libreoffice-fresh # office
- libreoffice-fresh-de # office - libreoffice-fresh-de # office
- libva-intel-driver # VAAPI - libva-intel-driver # VAAPI
- libva-mesa-driver # VAAPI - libva-mesa-driver # VAAPI
- libva-utils # VAAPI - libva-utils # VAAPI
- libvirt # virtualization - libvirt # virtualization
- linux # kernel - linux # kernel
- linux-firmware # kernel - linux-firmware # kernel
- linux-headers # kernel - linux-headers # kernel
- lldb - lldb
- lldb-mi - lldb-mi
- lutris # games - lutris # games
- man-db # docs - man-db # docs
- mesa # video driver - mesa # video driver
- mesa-vdpau # VDPAU - mesa-vdpau # VDPAU
- mosh # remote shell - mosh # remote shell
- mtools # fat - mtools # fat
- mythes-de # thesaurus - mythes-de # thesaurus
- mythes-en # thesaurus - mythes-en # thesaurus
- nerd-fonts # fonts - nerd-fonts # fonts
- nextcloud-client # cloud - nextcloud-client # cloud
- nodejs - nodejs
- noto-fonts # fonts - noto-fonts # fonts
- noto-fonts-cjk # fonts - noto-fonts-cjk # fonts
- noto-fonts-emoji # fonts - noto-fonts-emoji # fonts
- ntfs-3g # ntfs - ntfs-3g # ntfs
- nvme-cli # nvme ssd - nvme-cli # nvme ssd
- obs-studio # recording - obs-studio # recording
- okular # pdf - okular # pdf
- openssh # remote shell - openssh # remote shell
- opentofu # iac - opentofu # iac
- otf-font-awesome # fonts - otf-font-awesome # fonts
- p7zip # compression - p7zip # compression
- packagekit-qt6 - packagekit-qt6
- pacman-contrib # scripts - pacman-contrib # scripts
- pandoc - pandoc
- php # code - php # code
- piper # mouse - piper # mouse
- pipewire # audio - pipewire # audio
- pipewire-alsa # audio - pipewire-alsa # audio
- pipewire-jack # audio - pipewire-jack # audio
- pipewire-pulse # audio - pipewire-pulse # audio
- pkgstats - pkgstats
- podman # containers - podman # containers
- power-profiles-daemon # power management - power-profiles-daemon # power management
- prettier # code - prettier # code
- pyright # code - pyright # code
- python-black # code - python-black # code
- python-debugpy # code - python-debugpy # code
- python-isort # code - python-isort # code
- python-pip # code - python-pip # code
- python-pipenv # code - python-pipenv # code
- python-pyflakes # code - python-pyflakes # code
- python-pytest # code - python-pytest # code
- qemu-full # virtualization - qemu-full # virtualization
- rebuild-detector # packages - rebuild-detector # packages
- reflector # mirrors - reflector # mirrors
- restic # backup - restic # backup
- ripgrep # doom emacs - ripgrep # doom emacs
- rsync # file sync - rsync # file sync
- ruby-sass # code - ruby-sass # code
- shellcheck # code - shellcheck # code
- shfmt # code - shfmt # code
- smartmontools # disks - smartmontools # disks
- steam # games - steam # games
- stress # benchmark - stress # benchmark
- stylelint # code - stylelint # code
- tesseract-data-deu - tesseract-data-deu
- tesseract-data-eng - tesseract-data-eng
- texlive-core - texlive-core
- thunderbird # email - thunderbird # email
- tidy - tidy
- traceroute # network - traceroute # network
- transmission-remote-gtk # torrent - transmission-remote-gtk # torrent
- ttf-fira-code # fonts - ttf-fira-code # fonts
- ttf-fira-sans # fonts - ttf-fira-sans # fonts
- udftools # udf - udftools # udf
- unrar # compression - unrar # compression
- unzip # compression - unzip # compression
- util-linux # various utils - util-linux # various utils
- vdpauinfo # VDPAU - vdpauinfo # VDPAU
- vim # editor - vim # editor
- virt-manager # virtualization - virt-manager # virtualization
- vscode-css-languageserver - vscode-css-languageserver
- vulkan-intel # video driver - vulkan-intel # video driver
- vulkan-radeon # video driver - vulkan-radeon # video driver
- wget # network - wget # network
- wine # windows - wine # windows
- wireguard-tools # vpn - wireguard-tools # vpn
- wireplumber # audio - wireplumber # audio
- xdg-desktop-portal-gtk # flatpak theming - xdg-desktop-portal-gtk # flatpak theming
- xdg-user-dirs # standards - xdg-user-dirs # standards
- xdg-utils # standards - xdg-utils # standards
- xfsprogs # xfs - xfsprogs # xfs
- yt-dlp - yt-dlp
# AUR packages # - dockerfile-language-server # code # AUR
# - dockerfile-language-server # code # - dockfmt # AUR
# - dockfmt # - refind-theme-nord # bootmenu # AUR
# - refind-theme-nord # bootmenu # - btrfsmaintenance # AUR
become: true

View File

@ -1,6 +1,5 @@
--- ---
- hosts: localhost - hosts: localhost
become: yes
roles: roles:
# install packages # install packages
- role: packages - role: packages