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 @@ -1,5 +1,6 @@ --- +# Not used here, but nice to have ready - name: add backports apt_repository: repo: "deb http://http.debian.net/debian {{ansible_distribution_release}}-backports main" @@ -40,14 +41,8 @@ tags: packages, install -- name: Check for lightdm.conf +- name: Set default X session to i3 when: with_gui - stat: - path: /etc/lightdm/lightdm.conf - register: lightdmconf - -- name: Set default X session to i3 - when: with_gui and lightdmconf.stat.exists ini_file: dest: /etc/lightdm/lightdm.conf section: SeatDefaults