Fix a boolean test.

This commit is contained in:
Andrea Dell'Amico 2020-10-26 11:54:01 +01:00
parent 89fdd609dd
commit 9b447ea7eb
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@
apt: name={{ py_env_basic_pkgs | default([]) }} state={{ py_env_pkgs_state }} update_cache=yes cache_valid_time=600
when:
- py_env_install | bool
- py_env_install
- ansible_facts['distribution_version'] is version('16.04', '>=')
- ansible_distribution_file_variety == "Debian"
tags: [ "python", "py_env" ]
@ -23,7 +23,7 @@
apt: name={{ py_env_dpkg_toremove | default([]) }} state=absent
when:
- py_env_install | bool
- py_env_install
- ansible_distribution_file_variety == "Debian"
tags: [ "python", "py_env", "py_env_pkgs" ]