You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.yml 1.4KB

8 years ago
7 years ago
8 years ago
6 years ago
7 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. ---
  2. - name: make sure no other display managers are installed
  3. apt:
  4. pkg: "{{ item }}"
  5. state: absent
  6. with_items:
  7. - slim
  8. - gdm3
  9. - kdm
  10. - sddm
  11. - name: install packages
  12. apt:
  13. pkg: "{{ item }}"
  14. state: installed
  15. with_items:
  16. - xserver-xorg
  17. - xserver-xorg-video-all
  18. - xserver-xorg-input-all
  19. - x11-xserver-utils
  20. - lightdm
  21. - lightdm-gtk-greeter
  22. - onboard
  23. notify: restart lightdm
  24. - import_tasks: maintenance.yml
  25. when: display_manager_state == 'maintenance'
  26. - name: lightdm configuration
  27. template:
  28. src: lightdm.conf.j2
  29. dest: /etc/lightdm/lightdm.conf
  30. notify: restart lightdm
  31. - name: lightdm gtk-greeter configuration
  32. template:
  33. src: lightdm-gtk-greeter.conf.j2
  34. dest: /etc/lightdm/lightdm-gtk-greeter.conf
  35. notify: restart lightdm
  36. - name: lightdm display setup script
  37. template:
  38. src: display-setup.sh.j2
  39. dest: /etc/lightdm/display-setup.sh
  40. mode: u=rwx,g=rx,o=rx
  41. when: display_setup_commands is defined
  42. notify: restart lightdm
  43. - name: background image directory
  44. file:
  45. path: /usr/share/lightdm/background
  46. state: directory
  47. - name: background image
  48. copy:
  49. src: "{{display_manager_background_image}}"
  50. dest: "/usr/share/lightdm/background/{{display_manager_background_image}}"
  51. - name: lightdm started
  52. service:
  53. name: lightdm
  54. state: started
  55. enabled: yes
  56. - meta: flush_handlers
  57. - import_tasks: cleanup-litter.yaml