blob: 232c7db3c727b54a2713004366d40eeb13c2861c [file] [log] [blame]
Luca Prete8d4e8bc2016-08-24 14:49:54 -07001---
2#
3# Installs the Ubuntu GUI Unity and makes sure the machine doesn't start in text mode.
4# The machine is restarted at the end of the process.
5#
6- name: Installing GUI dependencies
7 become: yes
8 apt:
9 name: lubuntu-desktop
10
11- name: Editing grub GRUB_CMDLINE_LINUX_DEFAULT
12 become: yes
13 replace:
14 dest: /etc/default/grub
15 regexp: 'GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0"'
16 replace: 'GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"'
17
18- name: Removing text mode from GRUB
19 become: yes
20 replace:
21 dest: /etc/default/grub
22 regexp: 'text'
23 replace: ''
24
25- name: Updating GRUB
26 become: yes
27 command: update-grub