roles/devbox/tasks/dist-debian.yml

changeset 44
bb6b3457957b
parent 40
7325a3c8fbb3
child 45
2383a9aa66a8
--- 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'

mercurial