blob: 232c7db3c727b54a2713004366d40eeb13c2861c [file] [log] [blame]
---
#
# Installs the Ubuntu GUI Unity and makes sure the machine doesn't start in text mode.
# The machine is restarted at the end of the process.
#
- name: Installing GUI dependencies
become: yes
apt:
name: lubuntu-desktop
- name: Editing grub GRUB_CMDLINE_LINUX_DEFAULT
become: yes
replace:
dest: /etc/default/grub
regexp: 'GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0"'
replace: 'GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"'
- name: Removing text mode from GRUB
become: yes
replace:
dest: /etc/default/grub
regexp: 'text'
replace: ''
- name: Updating GRUB
become: yes
command: update-grub