No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

67 líneas
1.4KB

  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. - include: mainentance.yml
  25. when: display_manager_state == 'mainentance'
  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