From cb34659523c3aabb9585c40637b407191995196d Mon Sep 17 00:00:00 2001 From: Emiliano Vavassori Date: Thu, 9 Jul 2015 02:49:16 +0200 Subject: [PATCH] Nuovo approccio all'installazione del desktop environment, usando tasksel esplicitamente con modulo shell. --- roles/common/tasks/common.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/roles/common/tasks/common.yml b/roles/common/tasks/common.yml index 4ea0dfd..2b228b5 100644 --- a/roles/common/tasks/common.yml +++ b/roles/common/tasks/common.yml @@ -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