소스 검색

Invert logic to decide when to re-deploy certs

Scott Dodson 7 년 전
부모
커밋
f69549ff0d
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      playbooks/common/openshift-cluster/upgrades/post_control_plane.yml

+ 1 - 1
playbooks/common/openshift-cluster/upgrades/post_control_plane.yml

@@ -130,7 +130,7 @@
     # Step 2: Set a fact to be used to determine if we should run the redeploy of registry certs
     # Step 2: Set a fact to be used to determine if we should run the redeploy of registry certs
     - name: set a fact to include the registry certs playbook if needed
     - name: set a fact to include the registry certs playbook if needed
       set_fact:
       set_fact:
-        openshift_hosted_rollout_certs_and_registry: "{{ cert_output.rc == 0  }}"
+        openshift_hosted_rollout_certs_and_registry: "{{ cert_output.rc != 0  }}"
 
 
 # Run the redeploy certs based upon the certificates. Defaults to False for insecure registries
 # Run the redeploy certs based upon the certificates. Defaults to False for insecure registries
 - when: (hostvars[groups.oo_first_master.0].openshift_hosted_rollout_certs_and_registry | default(False)) | bool
 - when: (hostvars[groups.oo_first_master.0].openshift_hosted_rollout_certs_and_registry | default(False)) | bool