# HG changeset patch # User Meredith Howard # Date 1497489906 14400 # Node ID 5af98666f4d40ac1ca7dbbf1f5a7a65f6866a982 # Parent 8be666ca059e309b4a9c5d87e66106b7f4422e9b Make sure we don't try to install vim-nox and vim-gtk every pass diff --git a/roles/devbox/tasks/dist-debian.yml b/roles/devbox/tasks/dist-debian.yml --- 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: