+ replace: dest=/etc/systemd/system/getty.target.wants/getty@tty1.service regexp='^TTYVTDisallocate=yes.*$' replace='TTYVTDisallocate=no'
+
+ # Config user.
+ - name: create user plom with sudo privileges and bash shell
+ user: name=plom groups=sudo shell=/bin/bash
+ - name: have config repo in user directory
+ git: repo=https://github.com/plomlompom/config dest=/home/plom/config
+ become_user: plom
+ become_method: su
+
+ # Ensure X window environment.
+ - name: ensure minimal X window environment
+ apt: name={{item}} state=present
+ with_items:
+ - xserver-xorg
+ - xinit # contains startx
+ - libpam-systemd # needed to start X as non-root
+ - name: ensure basic X tools
+ apt: name={{item}} state=present
+ with_items:
+ - x11-xserver-utils # includes xrdb which applies .Xresources files
+ - xterm
+ - redshift
+ - i3
+ - i3status
+ - dmenu
+
+ # Set up pentadactyl.
+ - name: ensure browser environment
+ apt: name={{item}} state=present
+ - iceweasel
+ - xul-ext-noscript
+ - xul-ext-pentadactyl
+ - vim-gtk # used by pentadactyl for text editing