Make sure we don't try to install vim-nox and vim-gtk every pass

Wed, 14 Jun 2017 21:25:06 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 14 Jun 2017 21:25:06 -0400
changeset 51
5af98666f4d4
parent 50
8be666ca059e
child 52
bdd6c5938090

Make sure we don't try to install vim-nox and vim-gtk every pass

roles/devbox/tasks/dist-debian.yml file | annotate | diff | comparison | revisions
--- a/roles/devbox/tasks/dist-debian.yml
+++ b/roles/devbox/tasks/dist-debian.yml
@@ -8,7 +8,7 @@
     - mercurial
     - zsh
     - tmux
-    - vim-nox
+    - vim
     - silversearcher-ag
     - exuberant-ctags
   tags: packages, install
@@ -27,6 +27,12 @@
     - vim-gtk
   tags: packages, install
 
+- name: Install non-gui packages
+  when: not gui_enabled
+  apt: name={{item}} state=installed
+  with_items:
+    - vim-nox
+
 - name: Set default X session in lightdm
   when: gui_enabled and gui_session
   ini_file:

mercurial