Adjusting some tasks for installation/removal of role-managed packages.

This commit is contained in:
Emiliano Vavassori 2015-09-08 01:16:46 +02:00
parent ffae669d8a
commit 57df744c10

View File

@ -37,13 +37,13 @@
- name: Rimozione pacchetti installati ruolo client - name: Rimozione pacchetti installati ruolo client
apt: pkg={{ item }} state=absent purge=yes apt: pkg={{ item }} state=absent purge=yes
with_items: {{ base_client_delpkg }} with_items: "{{ base_client_delpkg }}"
sudo: yes sudo: yes
when: "{{ role }} == 'client'" when: "{{ role }} == 'client'"
- name: Rimozione pacchetti installati ruolo docenti - name: Rimozione pacchetti installati ruolo docenti
apt: pkg={{ item }} state=absent purge=yes apt: pkg={{ item }} state=absent purge=yes
with_items: {{ base_docenti_delpkg }} with_items: "{{ base_docenti_delpkg }}"
sudo: yes sudo: yes
when: "{{ role }} == 'docenti'" when: "{{ role }} == 'docenti'"
@ -59,27 +59,18 @@
tags: edu-install tags: edu-install
sudo: yes sudo: yes
- name: Rimozione pacchetti installati ruolo client - name: Installazione pacchetti installati ruolo client
apt: pkg={{ item }} state=present apt: pkg={{ item }} state=present
with_items: "{{ base_client_addpkg }}" with_items: "{{ base_client_addpkg }}"
sudo: yes sudo: yes
when: "{{ role }} == 'client'" when: "{{ role }} == 'client'"
- name: Rimozione pacchetti installati ruolo docenti - name: Installazione pacchetti installati ruolo docenti
apt: pkg={{ item }} state=present apt: pkg={{ item }} state=present
with_items: "{{ base_docenti_addpkg }}" with_items: "{{ base_docenti_addpkg }}"
sudo: yes sudo: yes
when: "{{ role }} == 'docenti'" when: "{{ role }} == 'docenti'"
- name: Installazione pacchetti aggiuntivi ruolo docente
apt: pkg={{ item }} state=installed
with_items:
- epoptes
tags: roles
sudo: yes
when: "{{ role }} == 'docenti'"
- name: Aggiungo VirtualBox Guest Additions, se necessario - name: Aggiungo VirtualBox Guest Additions, se necessario
apt: pkg=virtualbox-guest-dkms state=present apt: pkg=virtualbox-guest-dkms state=present
when: ansible_product_name == "VirtualBox" when: ansible_product_name == "VirtualBox"