Move base things out to the roles that need them
This commit is contained in:
parent
8941085248
commit
d79262bc92
6 changed files with 82 additions and 65 deletions
|
@ -5,26 +5,14 @@
|
||||||
name:
|
name:
|
||||||
- archlinux-keyring
|
- archlinux-keyring
|
||||||
- base-devel
|
- base-devel
|
||||||
- libnotify
|
- curl
|
||||||
- pacman-contrib # for checkupdates, paccache, pacdiff...
|
- pacman-contrib # for checkupdates, paccache, pacdiff...
|
||||||
- pkgfile # get hint on missing package when command not found
|
- pkgfile # get hint on missing package when command not found
|
||||||
- python-pip
|
- python-pip
|
||||||
- python-wheel
|
|
||||||
- python-setuptools
|
- python-setuptools
|
||||||
|
- python-wheel
|
||||||
- reflector
|
- 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
|
- wget
|
||||||
- xorg
|
|
||||||
- numlockx # activate numlock (set in .xinitrc)
|
|
||||||
- dunst
|
|
||||||
- udiskie # automount external drives (set in .xinitrc)
|
|
||||||
- xmlstarlet # for clitip
|
|
||||||
- pandoc # for clitip
|
|
||||||
when: ansible_facts['distribution'] == 'Archlinux'
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
|
|
||||||
- name: Install packages (Debian)
|
- name: Install packages (Debian)
|
||||||
|
@ -32,33 +20,15 @@
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
- build-essential
|
- build-essential
|
||||||
- libnotify-bin
|
|
||||||
- python3-venv
|
|
||||||
- python3-pip
|
|
||||||
- python3-wheel
|
|
||||||
- python3-setuptools
|
|
||||||
- xinit # enable xinit to avoid having to type 'startx'
|
|
||||||
- fonts-font-awesome
|
|
||||||
- fonts-jetbrains-mono
|
|
||||||
- fonts-firacode
|
|
||||||
- rsync # used for backup
|
|
||||||
- curl
|
- curl
|
||||||
|
- python3-pip
|
||||||
|
- python3-setuptools
|
||||||
|
- python3-venv
|
||||||
|
- python3-wheel
|
||||||
- wget
|
- wget
|
||||||
- xorg
|
|
||||||
- numlockx # activate numlock (set in .xinitrc)
|
|
||||||
- dunst
|
|
||||||
- udiskie # automount external drives (set in .xinitrc)
|
|
||||||
- xmlstarlet # for clitip
|
|
||||||
- pandoc # for clitip
|
|
||||||
when: ansible_facts['distribution'] == 'Debian'
|
when: ansible_facts['distribution'] == 'Debian'
|
||||||
|
|
||||||
- name: Update pkgfile for Archlinux
|
- name: Update pkgfile for Archlinux
|
||||||
become: true
|
become: true
|
||||||
command: pkgfile -u
|
command: pkgfile -u
|
||||||
when: ansible_facts['distribution'] == 'Archlinux'
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
|
|
||||||
- name: Copy Xmodmap
|
|
||||||
copy:
|
|
||||||
src: Xmodmap
|
|
||||||
dest: ~/.Xmodmap
|
|
||||||
mode: 0644
|
|
||||||
|
|
|
@ -1,8 +1,23 @@
|
||||||
---
|
---
|
||||||
|
- name: Install packages (Archlinux)
|
||||||
|
become: true
|
||||||
|
pacman:
|
||||||
|
name:
|
||||||
|
- rsync # used for backup
|
||||||
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
|
|
||||||
|
- name: Install packages (Debian)
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- rsync # used for backup
|
||||||
|
when: ansible_facts['distribution'] == 'Debian'
|
||||||
|
|
||||||
- name: Copy gitea-backup timer
|
- name: Copy gitea-backup timer
|
||||||
copy:
|
copy:
|
||||||
src: gitea-backup.timer
|
src: gitea-backup.timer
|
||||||
dest: ~/.config/systemd/user/gitea-backup.timer
|
dest: ~/.config/systemd/user/gitea-backup.timer
|
||||||
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
- Run daemon-reload
|
- Run daemon-reload
|
||||||
- Enable gitea-backup timer
|
- Enable gitea-backup timer
|
||||||
|
@ -11,4 +26,5 @@
|
||||||
template:
|
template:
|
||||||
src: gitea-backup.service.j2
|
src: gitea-backup.service.j2
|
||||||
dest: ~/.config/systemd/user/gitea-backup.service
|
dest: ~/.config/systemd/user/gitea-backup.service
|
||||||
|
mode: 0644
|
||||||
notify: Run daemon-reload
|
notify: Run daemon-reload
|
||||||
|
|
|
@ -3,43 +3,65 @@
|
||||||
become: true
|
become: true
|
||||||
pacman:
|
pacman:
|
||||||
name:
|
name:
|
||||||
- noto-fonts
|
|
||||||
- i3-gaps
|
|
||||||
- dmenu
|
- dmenu
|
||||||
- picom
|
- dunst
|
||||||
- xdg-user-dirs
|
|
||||||
- i3lock
|
|
||||||
- xsettingsd
|
|
||||||
- lxappearance
|
|
||||||
- scrot
|
|
||||||
- viewnior
|
|
||||||
- hsetroot
|
- hsetroot
|
||||||
|
- i3-gaps
|
||||||
|
- i3blocks
|
||||||
|
- i3lock
|
||||||
|
- libnotify
|
||||||
|
- lxappearance
|
||||||
|
- pandoc # for clitip
|
||||||
|
- picom
|
||||||
- python-feedparser
|
- python-feedparser
|
||||||
- python-matplotlib
|
- python-matplotlib
|
||||||
- i3blocks
|
- noto-fonts
|
||||||
|
- numlockx # activate numlock (set in .xinitrc)
|
||||||
|
- scrot
|
||||||
- sysstat
|
- sysstat
|
||||||
|
- ttf-font-awesome
|
||||||
|
- ttf-jetbrains-mono
|
||||||
|
- ttf-fira-code
|
||||||
|
- udiskie # automount external drives (set in .xinitrc)
|
||||||
- upower
|
- upower
|
||||||
|
- viewnior
|
||||||
|
- xdg-user-dirs
|
||||||
|
- xmlstarlet # for clitip
|
||||||
|
- xorg
|
||||||
|
- xorg-xinit # enable xinit to avoid having to type 'startx'
|
||||||
|
- xsettingsd
|
||||||
when: ansible_facts['distribution'] == 'Archlinux'
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
|
|
||||||
- name: Install packages (Debian)
|
- name: Install packages (Debian)
|
||||||
become: true
|
become: true
|
||||||
apt:
|
apt:
|
||||||
name:
|
name:
|
||||||
|
- dunst
|
||||||
|
- fonts-font-awesome
|
||||||
|
- fonts-jetbrains-mono
|
||||||
|
- fonts-firacode
|
||||||
- fonts-noto
|
- fonts-noto
|
||||||
- i3-wm
|
|
||||||
- suckless-tools
|
|
||||||
- picom
|
|
||||||
- xdg-user-dirs
|
|
||||||
- i3lock
|
|
||||||
- xsettingsd
|
|
||||||
- lxappearance
|
|
||||||
- scrot
|
|
||||||
- viewnior
|
|
||||||
- hsetroot
|
- hsetroot
|
||||||
|
- i3-wm
|
||||||
|
- i3lock
|
||||||
|
- libnotify-bin
|
||||||
- libstartup-notification0-dev # build dependency
|
- libstartup-notification0-dev # build dependency
|
||||||
|
- lxappearance
|
||||||
|
- numlockx # activate numlock (set in .xinitrc)
|
||||||
|
- pandoc # for clitip
|
||||||
|
- picom
|
||||||
|
- scrot
|
||||||
- python3-matplotlib
|
- python3-matplotlib
|
||||||
|
- suckless-tools
|
||||||
- sysstat
|
- sysstat
|
||||||
- upower
|
- upower
|
||||||
|
- udiskie # automount external drives (set in .xinitrc)
|
||||||
|
- viewnior
|
||||||
|
- xdg-user-dirs
|
||||||
|
- xinit # enable xinit to avoid having to type 'startx'
|
||||||
|
- xmlstarlet # for clitip
|
||||||
|
- xorg
|
||||||
|
- xsettingsd
|
||||||
when: ansible_facts['distribution'] == 'Debian'
|
when: ansible_facts['distribution'] == 'Debian'
|
||||||
|
|
||||||
- name: Clone repos
|
- name: Clone repos
|
||||||
|
@ -65,6 +87,7 @@
|
||||||
- {src: 'i3blocksconfig', dest: '~/.config/i3blocks/config'}
|
- {src: 'i3blocksconfig', dest: '~/.config/i3blocks/config'}
|
||||||
- {src: 'xinitrc', dest: '~/.xinitrc'}
|
- {src: 'xinitrc', dest: '~/.xinitrc'}
|
||||||
- {src: 'xserverrc', dest: '~/.xserverrc'}
|
- {src: 'xserverrc', dest: '~/.xserverrc'}
|
||||||
|
- {src: 'Xmodmap', dest: '~/.Xmodmap'}
|
||||||
- {src: 'Xresources', dest: '~/.Xresources'}
|
- {src: 'Xresources', dest: '~/.Xresources'}
|
||||||
- {src: 'xsettingsd', dest: '~/.xsettingsd'}
|
- {src: 'xsettingsd', dest: '~/.xsettingsd'}
|
||||||
- {src: 'picom.conf', dest: '~/.config/picom.conf'}
|
- {src: 'picom.conf', dest: '~/.config/picom.conf'}
|
||||||
|
|
|
@ -1,11 +1,27 @@
|
||||||
---
|
---
|
||||||
- include_vars: vault.yml
|
- name: Include vault variables
|
||||||
|
include_vars: vault.yml
|
||||||
|
|
||||||
|
- name: Install packages (Archlinux)
|
||||||
|
become: true
|
||||||
|
pacman:
|
||||||
|
name:
|
||||||
|
- rsync # used for backup
|
||||||
|
when: ansible_facts['distribution'] == 'Archlinux'
|
||||||
|
|
||||||
|
- name: Install packages (Debian)
|
||||||
|
become: true
|
||||||
|
apt:
|
||||||
|
name:
|
||||||
|
- rsync # used for backup
|
||||||
|
when: ansible_facts['distribution'] == 'Debian'
|
||||||
|
|
||||||
- name: Copy rsync_backup timer
|
- name: Copy rsync_backup timer
|
||||||
become: true
|
become: true
|
||||||
copy:
|
copy:
|
||||||
src: rsync_backup.timer
|
src: rsync_backup.timer
|
||||||
dest: /etc/systemd/system/rsync_backup.timer
|
dest: /etc/systemd/system/rsync_backup.timer
|
||||||
|
mode: 0644
|
||||||
notify:
|
notify:
|
||||||
- Run daemon-reload
|
- Run daemon-reload
|
||||||
- Enable rsync_backup timer
|
- Enable rsync_backup timer
|
||||||
|
@ -15,6 +31,7 @@
|
||||||
copy:
|
copy:
|
||||||
src: rsync_backup.service
|
src: rsync_backup.service
|
||||||
dest: /etc/systemd/system/rsync_backup.service
|
dest: /etc/systemd/system/rsync_backup.service
|
||||||
|
mode: 0644
|
||||||
notify: Run daemon-reload
|
notify: Run daemon-reload
|
||||||
|
|
||||||
- name: Copy rsync_backup script
|
- name: Copy rsync_backup script
|
||||||
|
|
|
@ -66,15 +66,6 @@ pw() {
|
||||||
unset PASSWORD_STORE_CLIP_TIME
|
unset PASSWORD_STORE_CLIP_TIME
|
||||||
}
|
}
|
||||||
|
|
||||||
clitip() {
|
|
||||||
curl -s https://raw.githubusercontent.com/jlevy/the-art-of-command-line/master/README.md |
|
|
||||||
sed '/cowsay[.]png/d' |
|
|
||||||
pandoc -f markdown -t html |
|
|
||||||
xmlstarlet fo --html --dropdtd |
|
|
||||||
xmlstarlet sel -t -v "(html/body/ul/li[count(p)>0])[$RANDOM mod last()+1]" |
|
|
||||||
xmlstarlet unesc | fmt -80 | iconv -t US
|
|
||||||
}
|
|
||||||
|
|
||||||
system-update() {
|
system-update() {
|
||||||
# Don't update if its a kernel update that will require reboot
|
# Don't update if its a kernel update that will require reboot
|
||||||
if checkupdates >/dev/null 2>&1; then
|
if checkupdates >/dev/null 2>&1; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue