--- a/roles/devbox/tasks/dist-debian.yml +++ b/roles/devbox/tasks/dist-debian.yml @@ -14,7 +14,7 @@ tags: packages, install - name: Install GUI packages - when: gui.enabled + when: gui_enabled apt: name={{item}} state=installed with_items: - i3 @@ -35,6 +35,13 @@ notify: - reload lightdm +- name: Enable and start lightdm + when: gui_enabled + service: + name: lightdm + enabled: yes + state: started + - apt_repository: repo: "deb http://mozilla.debian.net/ {{ansible_distribution_release}}-backports firefox-release" when: ansible_distribution_release != 'NA'