Browse Source

node: simplify when conditionals

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Giuseppe Scrivano 8 years ago
parent
commit
9347f8d1f7
1 changed files with 5 additions and 2 deletions
  1. 5 2
      roles/openshift_node/tasks/node_system_container.yml

+ 5 - 2
roles/openshift_node/tasks/node_system_container.yml

@@ -16,14 +16,17 @@
   register: update_result
   changed_when: "'Extracting' in update_result.stdout"
   when:
-  - (openshift.common.version is defined) and (openshift.common.version == openshift_version) and ("node" in result.stdout) | bool
+  - openshift.common.version is defined
+  - openshift.common.version == openshift_version
+  - ("node" in result.stdout) | bool
 
 - name: Uninstall Node system container package
   command: >
     atomic uninstall {{ openshift.common.service_type }}-node
   failed_when: False
   when:
-  - (openshift.common.version is not defined) or (openshift.common.version != openshift_version) and ("node" in result.stdout) | bool
+  - (openshift.common.version is not defined) or (openshift.common.version != openshift_version)
+  - ("node" in result.stdout) | bool
 
 - name: Install Node system container package
   command: >