Other tentative fix - 4.

This commit is contained in:
Emiliano Vavassori 2015-09-08 03:01:13 +02:00
parent 9fc249ebc2
commit f14ffe9f5c
1 changed files with 4 additions and 4 deletions

View File

@ -39,13 +39,13 @@
apt: pkg={{ item }} state=absent purge=yes
with_items: "{{ base_client_delpkg }}"
sudo: yes
when: "'{{ role }}' == 'client' and {{ base_client_delpkg is defined }}"
when: "'{{ role }}' == 'client' and {{ if base_client_delpkg is defined }}"
- name: Rimozione pacchetti installati ruolo docenti
apt: pkg={{ item }} state=absent purge=yes
with_items: "{{ base_docenti_delpkg }}"
sudo: yes
when: "'{{ role }}' == 'docenti' and {{ base_docenti_delpkg is defined }}"
when: "'{{ role }}' == 'docenti' and {{ if base_docenti_delpkg is defined }}"
- name: Rimozione pacchetti non più necessari
shell: apt-get -y autoremove
@ -63,13 +63,13 @@
apt: pkg={{ item }} state=present
with_items: "{{ base_client_addpkg }}"
sudo: yes
when: "'{{ role }}' == 'client' and {{ base_client_addpkg is defined }}"
when: "'{{ role }}' == 'client' and {{ if base_client_addpkg is defined }}"
- name: Installazione pacchetti installati ruolo docenti
apt: pkg={{ item }} state=present
with_items: "{{ base_docenti_addpkg }}"
sudo: yes
when: "'{{ role }}' == 'docenti' and {{ base_docenti_addpkg is defined }}"
when: "'{{ role }}' == 'docenti' and {{ if base_docenti_addpkg is defined }}"
- name: Aggiungo VirtualBox Guest Additions, se necessario
apt: pkg=virtualbox-guest-dkms state=present