From 6549ed1df016729571bd5bbbe3ab17796bba0cd9 Mon Sep 17 00:00:00 2001
From: Emiliano Vavassori <syntaxerrormmm@gmail.com>
Date: Mon, 21 Sep 2015 01:01:47 +0200
Subject: [PATCH] Oops, wrong logic in post-ks script. Corrected the one.

---
 roles/kickstart/templates/post-client-ks.sh  | 2 +-
 roles/kickstart/templates/post-docenti-ks.sh | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/roles/kickstart/templates/post-client-ks.sh b/roles/kickstart/templates/post-client-ks.sh
index ce3a969..c922da1 100644
--- a/roles/kickstart/templates/post-client-ks.sh
+++ b/roles/kickstart/templates/post-client-ks.sh
@@ -5,7 +5,7 @@ TARGETHOSTNAME=$(wget -qO- http://{{ ansible_local.domain.serverfqdn }}:3000/wha
 echo $TARGETHOSTNAME > /etc/hostname
 sed -i "s/kickseed/$TARGETHOSTNAME/g" /etc/hosts
 
-{% if ansible_product_name != 'VirtualBox' %}
+{% if ansible_product_name == 'VirtualBox' %}
 # Installo l'ultimo ansible per ansible-pull
 export https_proxy=https://{{ ansible_local.domain.serverip }}:3128
 add-apt-repository -y ppa:ansible/ansible
diff --git a/roles/kickstart/templates/post-docenti-ks.sh b/roles/kickstart/templates/post-docenti-ks.sh
index df52a80..9ad69dc 100644
--- a/roles/kickstart/templates/post-docenti-ks.sh
+++ b/roles/kickstart/templates/post-docenti-ks.sh
@@ -5,7 +5,7 @@ TARGETHOSTNAME=$(wget -qO- http://{{ ansible_local.domain.serverfqdn }}:3000/wha
 echo $TARGETHOSTNAME > /etc/hostname
 sed -i "s/kickseed/$TARGETHOSTNAME/g" /etc/hosts
 
-{% if ansible_product_name != 'VirtualBox' %}
+{% if ansible_product_name == 'VirtualBox' %}
 # Installo l'ultimo ansible per ansible-pull
 export https_proxy=https://{{ ansible_local.domain.serverip }}:3128
 add-apt-repository -y ppa:ansible/ansible