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.

58 lines
1.1KB

  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. - yad
  24. - xbindkeys
  25. - feh
  26. notify: restart lightdm
  27. - include: mainentance.yml
  28. when: display_manager_state == 'mainentance'
  29. - name: lightdm configuration
  30. template:
  31. src: lightdm.conf.j2
  32. dest: /etc/lightdm/lightdm.conf
  33. notify: restart lightdm
  34. - name: lightdm gtk-greeter configuration
  35. template:
  36. src: lightdm-gtk-greeter.conf.j2
  37. dest: /etc/lightdm/lightdm-gtk-greeter.conf
  38. #notify: restart lightdm
  39. - name: download background image
  40. get_url:
  41. url: "{{display_manager_background_image_url}}"
  42. dest: "{{display_manager_background_image_path}}"
  43. checksum: "{{display_manager_background_image_checksum}}"
  44. - name: lightdm started
  45. service:
  46. name: lightdm
  47. state: started
  48. enabled: yes
  49. - meta: flush_handlers