From 68396b3797cedc96f6e8ec5d76a3401034023867 Mon Sep 17 00:00:00 2001 From: Alexander Grothe Date: Wed, 22 Nov 2017 10:16:56 +0100 Subject: [PATCH] fix string comparisons --- Manual.org | 4 ++-- roles/autoinstall-ubuntu-drivers/tasks/main.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Manual.org b/Manual.org index b242df7..9ca56cf 100644 --- a/Manual.org +++ b/Manual.org @@ -3190,8 +3190,8 @@ The tool ubuntu-drivers is used to install the matching driver version for nvidi - name: let ubuntu-drivers automatically install additional drivers command: ubuntu-drivers --package-list /etc/yavdr/autoinstalled autoinstall when: - - ansible_virtualization_type =! "virtualbox" - - ansible_virtualization_role =! "guest" + - ansible_virtualization_type != "virtualbox" + - ansible_virtualization_role != "guest" - ansible_distribution == "Ubuntu" - ansible_distribution_version != "16.04" # ubuntu-drivers-common tries to autoinstall # conflicting packages for virtualbox :( diff --git a/roles/autoinstall-ubuntu-drivers/tasks/main.yml b/roles/autoinstall-ubuntu-drivers/tasks/main.yml index 966d45b..daec913 100644 --- a/roles/autoinstall-ubuntu-drivers/tasks/main.yml +++ b/roles/autoinstall-ubuntu-drivers/tasks/main.yml @@ -11,8 +11,8 @@ - name: let ubuntu-drivers automatically install additional drivers command: ubuntu-drivers --package-list /etc/yavdr/autoinstalled autoinstall when: - - ansible_virtualization_type =! "virtualbox" - - ansible_virtualization_role =! "guest" + - ansible_virtualization_type != "virtualbox" + - ansible_virtualization_role != "guest" - ansible_distribution == "Ubuntu" - ansible_distribution_version != "16.04" # ubuntu-drivers-common tries to autoinstall # conflicting packages for virtualbox :(