mirror of
https://github.com/eoli3n/dotfiles
synced 2024-11-22 23:12:32 +01:00
41 lines
1.8 KiB
YAML
41 lines
1.8 KiB
YAML
---
|
|
- hosts: all
|
|
|
|
pre_tasks:
|
|
|
|
- name: Install cower on Archlinux
|
|
shell: creates=/usr/bin/cower curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=cower; makepkg PKGBUILD --skippgpcheck --install --needed --noconfirm
|
|
when: ansible_os_family == "Archlinux"
|
|
tags: [ 'pacaur', 'laptop', 'desktop', 'server' ]
|
|
|
|
- name: Install pacaur on Archlinux
|
|
#TODO replace with packer, and test packer module
|
|
shell: creates=/usr/bin/pacaur curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur; makepkg PKGBUILD --install --needed --noconfirm
|
|
when: ansible_os_family == "Archlinux"
|
|
tags: [ 'pacaur', 'laptop', 'desktop', 'server' ]
|
|
|
|
roles:
|
|
- { role: packages, tags: packages }
|
|
# Server roles
|
|
- { role: zsh, tags: [ 'zsh', 'laptop', 'desktop', 'server' ] }
|
|
- { role: vim, tags: [ 'vim', 'laptop', 'desktop', 'server' ] }
|
|
- { role: terminfo, tags: [ 'terminfo', 'laptop', 'desktop', 'server' ] }
|
|
- { role: screen, tags: [ 'screen', 'laptop', 'desktop', 'server' ] }
|
|
- { role: ssh-agent, tags: [ 'ssh-agent', 'laptop', 'desktop', 'server' ] }
|
|
# Desktop/Laptop roles
|
|
- { role: cursor, tags: [ 'cursor', 'laptop', 'desktop' ] }
|
|
- { role: i3-wm, tags: [ 'i3-wm', 'laptop', 'desktop' ] }
|
|
- { role: compton, tags: [ 'compton', 'laptop', 'desktop' ] }
|
|
- { role: polybar, tags: [ 'polybar', 'laptop', 'desktop' ] }
|
|
- { role: rofi, tags: [ 'rofi', 'laptop', 'desktop' ] }
|
|
- { role: neofetch, tags: [ 'neofetch', 'laptop', 'dekstop' ] }
|
|
- { role: xbindkeys, tags: [ 'xbindkeys', 'laptop' ] }
|
|
- { role: termite, tags: [ 'termite', 'laptop', 'desktop' ] }
|
|
- { role: weechat, tags: [ 'weechat', 'laptop', 'desktop' ] }
|
|
|
|
tasks:
|
|
- include_role:
|
|
name: weechat
|
|
when: ansible_env.username == "vagrant"
|
|
tags: [ 'wallpaper', 'desktop' ]
|