Added a task to automatically update the client and a task to remove non-required package (apt-get autoremove).

This commit is contained in:
Emiliano Vavassori 2015-07-28 22:23:46 +02:00
parent e64b0ef44c
commit 87da9b2506
1 changed files with 9 additions and 1 deletions

View File

@ -12,6 +12,10 @@
apt: update_cache=yes
sudo: yes
- name: Aggiornamento sistema
apt: upgrade=full
sudo: yes
- name: Verifica presenza desktop environment
shell: 'tasksel --list-tasks | grep "^i edubuntu-desktop-gnome"'
ignore_errors: yes
@ -42,7 +46,7 @@
when: ansible_product_name == "VirtualBox"
sudo: yes
- name: Rimozione di pacchetti non richiesti
- name: Rimozione di pacchetti installati ma non richiesti
apt: pkg={{ item }} state=absent purge=yes
with_items:
- libnss-mdns
@ -52,6 +56,10 @@
- epoptes
sudo: yes
- name: Rimozione pacchetti non più necessari
shell: apt-get -y autoremove
sudo: yes
- name: Correggo NetworkManager per gestire la rete
lineinfile:
dest: /etc/network/interfaces