toansible: Add base installation
This commit is contained in:
parent
feb2c05a1d
commit
a36170a3a7
3 changed files with 58 additions and 39 deletions
39
configs.yml
39
configs.yml
|
@ -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
|
||||
|
|
|
@ -2,4 +2,5 @@
|
|||
|
||||
- hosts: localhost
|
||||
roles:
|
||||
- base
|
||||
- neovim
|
||||
|
|
57
roles/base/tasks/main.yml
Normal file
57
roles/base/tasks/main.yml
Normal 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'
|
Loading…
Add table
Reference in a new issue