Wed, 13 Apr 2016 13:17:45 -0400
fixup gui
--- 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'