Browse Source

Correct tests used as filters

https://docs.ansible.com/ansible/2.5/dev_guide/testing/sanity/no-tests-as-filters.html
Russell Teague 6 years ago
parent
commit
a34ddb8bcb

+ 1 - 1
playbooks/openshift-master/private/additional_config.yml

@@ -49,7 +49,7 @@
     when:
     - openshift_cloudprovider_kind is defined
     - openshift_cloudprovider_kind == 'vsphere'
-    - openshift_version | version_compare('3.9', '>=')
+    - openshift_version is version_compare('3.9', '>=')
 
 - name: update vsphere provider master config
   hosts: oo_masters_to_config

+ 1 - 1
roles/openshift_node/tasks/upgrade.yml

@@ -39,7 +39,7 @@
   with_items:
   - "/etc/cni/net.d/200-loopback.conf"
   - "/etc/cni/net.d/100-crio-bridge.conf"
-  when: crio_update | changed
+  when: crio_update is changed
 
 - name: install pre-pulled rpms.
   import_tasks: upgrade/rpm_upgrade_install.yml