diff --git a/roles/base/tasks/base.yml b/roles/base/tasks/base.yml index 0f6ac09..173bd95 100644 --- a/roles/base/tasks/base.yml +++ b/roles/base/tasks/base.yml @@ -37,13 +37,13 @@ - name: Rimozione pacchetti installati ruolo client apt: pkg={{ item }} state=absent purge=yes - with_items: {{ base_client_delpkg }} + with_items: "{{ base_client_delpkg }}" sudo: yes when: "{{ role }} == 'client'" - name: Rimozione pacchetti installati ruolo docenti apt: pkg={{ item }} state=absent purge=yes - with_items: {{ base_docenti_delpkg }} + with_items: "{{ base_docenti_delpkg }}" sudo: yes when: "{{ role }} == 'docenti'" @@ -59,27 +59,18 @@ tags: edu-install sudo: yes -- name: Rimozione pacchetti installati ruolo client +- name: Installazione pacchetti installati ruolo client apt: pkg={{ item }} state=present with_items: "{{ base_client_addpkg }}" sudo: yes when: "{{ role }} == 'client'" -- name: Rimozione pacchetti installati ruolo docenti +- name: Installazione pacchetti installati ruolo docenti apt: pkg={{ item }} state=present with_items: "{{ base_docenti_addpkg }}" sudo: yes 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 apt: pkg=virtualbox-guest-dkms state=present when: ansible_product_name == "VirtualBox"