2015-07-08 02:30:07 +02:00
|
|
|
---
|
|
|
|
# Configurazione di base del sistema.
|
|
|
|
|
|
|
|
- name: Cambiamento apt/sources.list
|
|
|
|
template:
|
|
|
|
src: apt/sources.list
|
|
|
|
dest: /etc/apt/sources.list
|
|
|
|
backup: yes
|
|
|
|
when: ansible_product_name != "VirtualBox"
|
|
|
|
|
|
|
|
- name: Aggiornamento pacchetti disponibili
|
|
|
|
apt: update_cache=yes
|
2015-07-08 17:17:23 +02:00
|
|
|
sudo: yes
|
2015-07-08 02:30:07 +02:00
|
|
|
|
2015-07-09 02:49:16 +02:00
|
|
|
- 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
|
|
|
|
|
2015-07-09 02:04:38 +02:00
|
|
|
- name: Installazione desktop environment
|
2015-07-09 02:49:16 +02:00
|
|
|
shell: 'tasksel install edubuntu-desktop-gnome'
|
2015-07-09 02:50:47 +02:00
|
|
|
when: check_edubuntu_desktop|changed
|
2015-07-09 02:04:38 +02:00
|
|
|
sudo: yes
|
|
|
|
|
|
|
|
- name: Installazione pacchetti aggiuntivi
|
2015-07-08 02:30:07 +02:00
|
|
|
apt: pkg={{ item }} state=installed
|
|
|
|
with_items:
|
|
|
|
- ubuntu-edu-secondary
|
2015-07-09 02:04:38 +02:00
|
|
|
- epoptes-client
|
2015-07-08 12:16:14 +02:00
|
|
|
sudo: yes
|
2015-07-08 02:30:07 +02:00
|
|
|
|
|
|
|
- name: Rimozione di pacchetti non richiesti
|
2015-07-08 13:09:11 +02:00
|
|
|
apt: pkg={{ item }} state=absent purge=yes
|
2015-07-08 02:30:07 +02:00
|
|
|
with_items:
|
|
|
|
- unity-webapps-common
|
|
|
|
- zeitgeist-core
|
|
|
|
- zeitgeist-datahub
|
|
|
|
- epoptes
|
2015-07-08 12:16:14 +02:00
|
|
|
sudo: yes
|
2015-07-09 02:04:38 +02:00
|
|
|
|
|
|
|
#- name: Correggo NetworkManager per gestire la rete
|
|
|
|
# lineinfile:
|
|
|
|
# dest: /etc/NetworkManager/NetworkManager.conf
|
|
|
|
# regexp: '^managed=false'
|
|
|
|
# line: 'managed=true'
|
|
|
|
# state: present
|
|
|
|
|
|
|
|
# Configura networkmanager
|