- # Set up editor
- - name: set ~/.vimrc
- file: state=link force=yes src=/root/config/ansible/dotfiles/vimrc dest=~/.vimrc
- - name: set ~/.vimrc_add
- file: state=link force=yes src=/root/config/ansible/dotfiles/vimrc_add dest=~/.vimrc_add
- - name: ensure ~/.vimbackups directory
- file: path=~/.vimbackups state=directory
- - name: ensure vim is installed
- apt: name=vim state=present
+ # 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_lines: cat ~/config/ansible/files/apt-mark/minimal_x | sed -e 's/ *#.*$//'
+ - name: ensure 3d acceleration and optimus switch
+ apt: name={{item}} state=present
+ with_lines: cat ~/config/ansible/files/apt-mark/3d_acceleration | sed -e 's/ *#.*$//'
+ - name: ensure basic X tools
+ apt: name={{item}} state=present
+ with_lines: cat ~/config/ansible/files/apt-mark/basic_x_tools | sed -e 's/ *#.*$//'
+
+ # Set up pentadactyl.
+ - name: ensure browser environment
+ apt: name={{item}} state=present
+ with_lines: cat ~/config/ansible/files/apt-mark/browser_environment | sed -e 's/ *#.*$//'
+
+ # Ensure wifi.
+ - name: ensure wifi configuration
+ apt: name={{item}} state=present
+ with_lines: cat ~/config/ansible/files/apt-mark/wifi | sed -e 's/ *#.*$//'
+
+ # Ensure audio/video consumption necessities.
+ - name: ensure multimedia tools
+ apt: name={{item}} state=present
+ with_lines: cat ~/config/ansible/files/apt-mark/multimedia | sed -e 's/ *#.*$//'