1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
- name: generate gdm configuration template: src: etc/gdm/custom.conf.j2 dest: /etc/gdm/custom.conf notify: restart gdm - name: disable lightdm systemd: name: lightdm enabled: no state: stopped - name: enable gdm systemd: name: gdm enabled: yes state: started