fix string comparisons

This commit is contained in:
Alexander Grothe 2017-11-22 10:16:56 +01:00
parent c70d6f97c6
commit 68396b3797
2 changed files with 4 additions and 4 deletions

View File

@ -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 :(

View File

@ -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 :(