From cb1e4854b96824f188e441858803f99440768118 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 21 Mar 2017 01:37:03 +0100
Subject: [PATCH] Ansible script: Improve X and browser setup.

---
 ansible/config.yml | 15 ++++++++++++---
 ansible/user.yml   |  2 ++
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/ansible/config.yml b/ansible/config.yml
index 63689a6..d286ed9 100644
--- a/ansible/config.yml
+++ b/ansible/config.yml
@@ -70,18 +70,27 @@
     become_user: plom
     become_method: su
 
-  # Ensure minimal X window environment.
+  # Ensure X window environment.
   - name: ensure minimal X window environment
     apt: name={{item}} state=present
     with_items:
     - xserver-xorg
-    - xinit
-    - libpam-systemd # needed to start X as non-root
+    - 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
diff --git a/ansible/user.yml b/ansible/user.yml
index 5a90f20..07dd189 100644
--- a/ansible/user.yml
+++ b/ansible/user.yml
@@ -9,3 +9,5 @@
     - ~/config/dotfiles/minimal/*
     - ~/config/dotfiles/user/thinkpad/minimal/*
     - ~/config/dotfiles/user/thinkpad/W530/*
+  - name: ensure ~/downloads directory
+    file: state=directory dest=~/downloads
-- 
2.30.2