Wed, 14 Jun 2017 21:25:06 -0400
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: