Nuovo approccio all'installazione del desktop environment, usando tasksel esplicitamente con modulo shell.

This commit is contained in:
Emiliano Vavassori 2015-07-09 02:49:16 +02:00
parent 1e0d5777c9
commit cb34659523
1 changed files with 9 additions and 1 deletions

View File

@ -12,8 +12,16 @@
apt: update_cache=yes
sudo: yes
- name: Verifica desktop Edubuntu
shell: 'tasksel --list-tasks | grep "^i edubuntu-desktop-gnome"'
ignore_errors: yes
register: check_edubuntu_desktop
changed_when: check_edubuntu_desktop.rc != 0
sudo: yes
- name: Installazione desktop environment
apt: pkg="edubuntu-desktop-gnome^" state=installed
shell: 'tasksel install edubuntu-desktop-gnome'
when: checked_edubuntu_desktop|changed
sudo: yes
- name: Installazione pacchetti aggiuntivi