fixup gui

Wed, 13 Apr 2016 13:17:45 -0400

author
Meredith Howard <mhoward@roomag.org>
date
Wed, 13 Apr 2016 13:17:45 -0400
changeset 44
bb6b3457957b
parent 43
31d5f9b7cff2
child 45
2383a9aa66a8

fixup gui

playbook.yml file | annotate | diff | comparison | revisions
roles/devbox/meta/main.yml file | annotate | diff | comparison | revisions
roles/devbox/tasks/dist-debian.yml file | annotate | diff | comparison | revisions
--- a/playbook.yml
+++ b/playbook.yml
@@ -4,4 +4,5 @@
   roles:
     - devbox
     - user
+    - {role: firefox, when: gui_enabled}
 
--- a/roles/devbox/meta/main.yml
+++ b/roles/devbox/meta/main.yml
@@ -2,4 +2,3 @@
 dependencies:
   - repositories
   - sudo
-  - {role: firefox, when: gui.enabled}
--- 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