toansible: Add base installation

This commit is contained in:
flyingscorpio@clevo 2022-02-21 14:11:46 +01:00
parent feb2c05a1d
commit a36170a3a7
3 changed files with 58 additions and 39 deletions

View file

@ -1,42 +1,3 @@
base:
- install:
arch:
- archlinux-keyring
- base-devel
- libnotify
- pacman-contrib # for checkupdates, paccache, pacdiff...
- pkgfile # get hint on missing package when command not found
- python-pip
- python-setuptools
- reflector
- xorg-xinit # enable xinit to avoid having to type 'startx'
- ttf-font-awesome
- ttf-jetbrains-mono
- ttf-fira-code
debian:
- build-essential
- libnotify-bin
- python3-venv
- python3-pip
- python3-setuptools
- xinit # enable xinit to avoid having to type 'startx'
- fonts-font-awesome
- fonts-jetbrains-mono
- fonts-firacode
both:
- rsync # used for backup
- curl
- wget
- xorg
- numlockx # activate numlock (set in .xinitrc)
- dunst
- udiskie # automount external drives (set in .xinitrc)
- xmlstarlet # for clitip
- pandoc # for clitip
- run:
command: sudo pkgfile -u
condition: arch
xmodmap:
- symlink:
- dotfiles/Xmodmap

View file

@ -2,4 +2,5 @@
- hosts: localhost
roles:
- base
- neovim

57
roles/base/tasks/main.yml Normal file
View file

@ -0,0 +1,57 @@
---
- name: Install packages (Arch)
become: true
pacman:
name:
- archlinux-keyring
- base-devel
- libnotify
- pacman-contrib # for checkupdates, paccache, pacdiff...
- pkgfile # get hint on missing package when command not found
- python-pip
- python-setuptools
- reflector
- xorg-xinit # enable xinit to avoid having to type 'startx'
- ttf-font-awesome
- ttf-jetbrains-mono
- ttf-fira-code
- rsync # used for backup
- curl
- wget
- xorg
- numlockx # activate numlock (set in .xinitrc)
- dunst
- udiskie # automount external drives (set in .xinitrc)
- xmlstarlet # for clitip
- pandoc # for clitip
when: ansible_distribution == 'Archlinux'
- name: Install packages (Debian)
become: true
apt:
name:
- build-essential
- libnotify-bin
- python3-venv
- python3-pip
- python3-setuptools
- xinit # enable xinit to avoid having to type 'startx'
- fonts-font-awesome
- fonts-jetbrains-mono
- fonts-firacode
- rsync # used for backup
- curl
- wget
- xorg
- numlockx # activate numlock (set in .xinitrc)
- dunst
- udiskie # automount external drives (set in .xinitrc)
- xmlstarlet # for clitip
- pandoc # for clitip
when: ansible_distribution == 'Debian'
- name: Update pkgfile for Archlinux
become: true
command: pkgfile -u
when: ansible_distribution == 'Archlinux'