# HG changeset patch # User Meredith Howard # Date 1442875736 14400 # Node ID 515d87b4bfc4bc58df50ad9510d743077132890f # Parent 18da47fe753c69403e91d875445d8f3989d12f20 Reorganize gui vars and allow setting default lightdm session diff --git a/group_vars/all.yml b/group_vars/all.yml --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -4,7 +4,9 @@ user: name: mhoward comment: Meredith Howard -with_gui: true +gui: + enabled: false + session: "i3" dotfiles_repository: ssh://mhoward@roomag.org/proj/dotfiles diff --git a/roles/devbox/tasks/debian.yml b/roles/devbox/tasks/debian.yml --- a/roles/devbox/tasks/debian.yml +++ b/roles/devbox/tasks/debian.yml @@ -25,7 +25,7 @@ tags: packages, install - name: Install GUI packages - when: with_gui + when: gui.enabled apt: name={{item}} state=installed with_items: - i3 @@ -41,13 +41,13 @@ tags: packages, install -- name: Set default X session to i3 - when: with_gui +- name: Set default X session in lightdm + when: gui.session ini_file: dest: /etc/lightdm/lightdm.conf section: SeatDefaults option: user-session - value: i3 + value: "{{gui.session}}" backup: true notify: - restart lightdm