- # Configure shell.
- - name: set ~/.bashrc
- file: state=link force=yes src=/root/config/ansible/dotfiles/bashrc dest=~/.bashrc
- - name: set ~/.profile
- file: state=link force=yes src=/root/config/ansible/dotfiles/profile dest=~/.profile
- - name: set ~/.shinit
- file: state=link force=yes src=/root/config/ansible/dotfiles/shinit dest=~/.shinit
- - name: set ~/.shinit_color
- file: state=link force=yes src=/root/config/ansible/dotfiles/shinit_color dest=~/.shinit_color
+ # Ensure X window environment.
+ - name: ensure minimal X window environment
+ apt: name={{item}} state=present
+ with_items:
+ - xserver-xorg-core
+ - xserver-xorg-input-evdev # supports all input devices the kernel knows about
+ - xinit # contains startx
+ - libpam-systemd # needed to start X as non-root
+ - name: ensure basic X tools
+ apt: name={{item}} state=present
+ with_items:
+ - libgl1-mesa-dri # necessary for OpenGL 3D acceleration to work
+ - xterm
+ - x11-xserver-utils # includes xrdb which applies .Xresources files
+ - redshift
+ - i3
+ - i3status
+ - dmenu