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.

42 lines
717B

  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. - yad
  22. - xbindkeys
  23. - include: mainentance.yml
  24. when: display_manager_state == 'mainentance'
  25. - name: lightdm configuration
  26. template:
  27. src: lightdm.conf.j2
  28. dest: /etc/lightdm/lightdm.conf
  29. notify: restart lightdm
  30. - name: lightdm started
  31. service:
  32. name: lightdm
  33. state: started
  34. enabled: yes
  35. - meta: flush_handlers