2017-12-16 22:45:14 +01:00
|
|
|
---
|
|
|
|
- hosts: all
|
|
|
|
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- name: Install stow
|
|
|
|
package: name=stow state=present
|
|
|
|
become: True
|
2017-12-17 01:27:04 +01:00
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- server
|
2017-12-16 22:45:14 +01:00
|
|
|
|
|
|
|
- name: Install Desktop/Laptop tools (generic)
|
|
|
|
package: name={{item}} state=present
|
|
|
|
with_items:
|
|
|
|
- lxappearance
|
|
|
|
- curl
|
|
|
|
- wget
|
|
|
|
- slop
|
|
|
|
- maim
|
|
|
|
- xclip
|
|
|
|
- xorg-xrdb
|
|
|
|
- xorg-xfd
|
|
|
|
- connman
|
2017-12-17 01:35:54 +01:00
|
|
|
- expac
|
2017-12-16 22:45:14 +01:00
|
|
|
become: True
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
|
2017-12-17 01:35:54 +01:00
|
|
|
- name: Install pacaur
|
|
|
|
block:
|
2017-12-17 01:38:36 +01:00
|
|
|
- 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
|
|
|
|
- shell: creates=/usr/bin/pacaur curl -o PKGBUILD https://aur.archlinux.org/cgit/aur.git/plain/PKGBUILD?h=pacaur; makepkg PKGBUILD --install --needed --noconfirm
|
2017-12-17 01:35:54 +01:00
|
|
|
when: ansible_os_family == "Archlinux"
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- server
|
|
|
|
- pacaur
|
|
|
|
|
2017-12-16 22:45:14 +01:00
|
|
|
- name: Install Desktop/Laptop tools (Archlinux)
|
2017-12-17 01:23:38 +01:00
|
|
|
shell: creates={{item.creates}} pacaur -S --noconfirm {{item.package}}
|
2017-12-16 22:45:14 +01:00
|
|
|
with_items:
|
2017-12-17 01:23:38 +01:00
|
|
|
- { package: 'connman-gtk', creates: '/usr/bin/connman-gtk' }
|
|
|
|
- { package: 'gnome-ssh-askpass2', creates: '/usr/lib/ssh/gnome-ssh-askpass2' }
|
2017-12-16 22:45:14 +01:00
|
|
|
when: ansible_os_family == "Archlinux"
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
|
2017-12-17 01:23:38 +01:00
|
|
|
- name: Install CLI tools (generic)
|
2017-12-16 22:45:14 +01:00
|
|
|
package: name={{item}} state=present
|
|
|
|
with_items:
|
|
|
|
- pygmentize
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- server
|
|
|
|
|
2017-12-17 01:23:38 +01:00
|
|
|
- name: Install CLI tools (Archlinux)
|
|
|
|
package: name={{item}} state=present
|
|
|
|
with_items:
|
|
|
|
- cower
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- server
|
|
|
|
|
2017-12-16 22:45:14 +01:00
|
|
|
- name: Install fonts
|
2017-12-17 01:13:15 +01:00
|
|
|
shell: creates={{item.creates}} pacaur -S --noconfirm {{item.package}}
|
2017-12-16 22:45:14 +01:00
|
|
|
with_items:
|
2017-12-17 01:13:15 +01:00
|
|
|
- { package: 'ttf-font-awesome', creates: '/usr/share/fonts/TTF/fontawesome-webfont.ttf' }
|
|
|
|
- { package: 'ttf-unifont', creates: '/usr/share/fonts/TTF/Unifont.ttf' }
|
|
|
|
- { package: 'ttf-font-icons', creates: '/usr/share/fonts/TTF/icons.ttf' }
|
2017-12-16 22:45:14 +01:00
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
|
|
|
|
- name: Install and configure Cursor
|
|
|
|
block:
|
|
|
|
- shell: creates=/usr/share/icons/capitaine-cursors/ pacaur -S --noconfirm capitaine-cursors
|
|
|
|
- shell: creates=~/.Xresources.d/cursor stow cursor
|
|
|
|
- lineinfile: path=~/.Xresources create=yes state=present line='#include ".Xresources.d/cursor"'
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- cursor
|
|
|
|
|
|
|
|
- name: Install and configure i3-wm
|
|
|
|
block:
|
2017-12-17 01:13:15 +01:00
|
|
|
- shell: creates={{item.creates}} pacaur -S --noconfirm {{item.package}}
|
2017-12-16 22:45:14 +01:00
|
|
|
with_items:
|
2017-12-17 01:13:15 +01:00
|
|
|
- { package: 'i3-gaps', creates: '/usr/bin/i3' }
|
|
|
|
- { package: 'i3lock-color-git', creates: '/usr/bin/i3lock' }
|
2017-12-16 22:45:14 +01:00
|
|
|
- shell: creates=~/.i3 stow i3-wm
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- i3-wm
|
|
|
|
|
|
|
|
- name: Install and configure compton
|
|
|
|
block:
|
|
|
|
- shell: creates=/usr/bin/compton pacaur -S --noconfirm compton-git
|
|
|
|
- shell: creates=~/.compton stow compton
|
|
|
|
- blockinfile:
|
|
|
|
path: ~/.xprofile
|
|
|
|
create: True
|
|
|
|
marker: "<!-- {mark} DOTFILES MANAGED BLOCK -->"
|
|
|
|
content: |
|
|
|
|
compton --backend glx --vsync opengl-swc -GCb --config ~/.compton &
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- compton
|
|
|
|
|
|
|
|
- name: Install and configure polybar
|
|
|
|
block:
|
|
|
|
- shell: creates=/usr/bin/polybar pacaur -S --noconfirm polybar-git
|
|
|
|
- shell: creates=~/.config/polybar stow polybar
|
|
|
|
- debug:
|
|
|
|
msg: "Do not forget to edit MONITOR vars in ~/.config/polybar/launch.sh"
|
|
|
|
- lineinfile:
|
2017-12-17 00:44:39 +01:00
|
|
|
path: i3-wm/.i3/i3lock-fancy-multimonitor/lock
|
2017-12-16 22:45:14 +01:00
|
|
|
regexp: '^BLURTYPE="2x8"'
|
|
|
|
line: '#BLURTYPE="2x8"'
|
|
|
|
- lineinfile:
|
2017-12-17 00:46:03 +01:00
|
|
|
path: i3-wm/.i3/i3lock-fancy-multimonitor/lock
|
2017-12-16 22:45:14 +01:00
|
|
|
regexp: '^#BLURTYPE="5x3"'
|
|
|
|
line: 'BLURTYPE="5x3"'
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- polybar
|
|
|
|
|
|
|
|
- name: Install and configure rofi
|
|
|
|
block:
|
|
|
|
- shell: creates=/usr/bin/rofi pacaur -S --noconfirm rofi
|
|
|
|
- shell: creates=~/.config/rofi stow polybar
|
|
|
|
- lineinfile: path=~/.Xresources create=yes state=present line='#include ".Xresources.d/rofi"'
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- rofi
|
|
|
|
|
|
|
|
- name: Install and configure xbindkeys
|
|
|
|
block:
|
|
|
|
- package: name=xbindkeys state=present
|
|
|
|
become: True
|
|
|
|
- shell: creates=~/.xbindkeys stow xbindkeys
|
|
|
|
- blockinfile:
|
|
|
|
path: ~/.xprofile
|
|
|
|
create: True
|
|
|
|
marker: "<!-- {mark} DOTFILES MANAGED BLOCK -->"
|
|
|
|
content: |
|
|
|
|
xbindkeys &
|
|
|
|
tags:
|
|
|
|
- laptop
|
|
|
|
- xbindkeys
|
|
|
|
|
|
|
|
- name: Install and configure neofetch
|
|
|
|
block:
|
2017-12-17 01:13:15 +01:00
|
|
|
- shell: creates={{item.creates}} pacaur -S --noconfirm {{item.package}}
|
2017-12-16 22:45:14 +01:00
|
|
|
with_items:
|
2017-12-17 01:13:15 +01:00
|
|
|
- { package: 'neofetch', creates: '/usr/bin/neofetch' }
|
|
|
|
- { package: 'w3m', creates: '/usr/bin/w3m' }
|
2017-12-16 22:45:14 +01:00
|
|
|
- shell: creates=~/.config/neofetch stow neofetch
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- neofetch
|
|
|
|
|
|
|
|
- name: Install and configure termite
|
|
|
|
block:
|
|
|
|
- package: name={{item}} state=present
|
|
|
|
with_items:
|
|
|
|
- termite
|
|
|
|
- ttf-hack
|
|
|
|
become: True
|
|
|
|
- shell: creates=~/.config/termite stow termite
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- termite
|
|
|
|
|
|
|
|
- name: Install termite terminfo (Arch)
|
|
|
|
pacman: name=termite-terminfo state=present
|
|
|
|
when: ansible_os_family == "Archlinux"
|
|
|
|
become: True
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- server
|
|
|
|
- termite
|
|
|
|
|
|
|
|
- name: Install termite terminfo (Others)
|
|
|
|
shell: tic -x termite/termite.terminfo
|
|
|
|
when: ansible_os_family != "Archlinux"
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- server
|
|
|
|
- termite
|
|
|
|
|
|
|
|
- name: Install and configure screen
|
|
|
|
block:
|
|
|
|
- package: name=screen state=present
|
|
|
|
- shell: creates=~/.screenrc stow screen
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- server
|
|
|
|
- screen
|
|
|
|
|
|
|
|
- name: Install and configure zsh (with pure prompt)
|
|
|
|
block:
|
|
|
|
- package: name={{item}} state=present
|
|
|
|
with_items:
|
|
|
|
- zsh
|
|
|
|
- most
|
|
|
|
- zsh-syntax-highlighting
|
|
|
|
- shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
|
|
|
- shell: creates=~/.zshrc stow zsh
|
2017-12-17 00:55:36 +01:00
|
|
|
- file: src=~/.zsh/pure/pure.zsh dest=~/.zfunctions/prompt_pure_setup state=link
|
2017-12-17 00:59:47 +01:00
|
|
|
ignore_errors: True
|
2017-12-17 00:55:36 +01:00
|
|
|
- file: src=~/.zsh/pure/async.zsh dest=~/.zfunctions/async state=link
|
2017-12-17 00:59:47 +01:00
|
|
|
ignore_errors: True
|
2017-12-16 22:45:14 +01:00
|
|
|
- file: path=~/.zshrc_node state=touch
|
|
|
|
changed_when: False
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- server
|
|
|
|
- zsh
|
|
|
|
|
|
|
|
- name: Install and configure vim
|
|
|
|
block:
|
|
|
|
- package: name=vim state=present
|
|
|
|
- shell: creates=~/.vim stow vim
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- server
|
|
|
|
- vim
|
|
|
|
|
|
|
|
- name: SSH-agent as a service
|
|
|
|
block:
|
|
|
|
- shell: creates=~/.config/systemd/user/ssh-agent.service stow ssh-agent
|
|
|
|
- systemd: name=ssh-agent state=started enabled=yes user=yes
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- ssh-agent
|
|
|
|
|
|
|
|
- name: Weechat as a service
|
|
|
|
block:
|
|
|
|
- package: name={item} state=present
|
|
|
|
with_items:
|
|
|
|
- screen
|
|
|
|
- weechat
|
|
|
|
become: True
|
|
|
|
- shell: creates=~/.config/systemd/user/weechat.service stow weechat
|
|
|
|
- systemd: name=weechat state=started enabled=yes user=yes
|
|
|
|
tags:
|
|
|
|
- desktop
|
|
|
|
- laptop
|
|
|
|
- weechat
|