소스 검색

Default install_result when reloading generated facts.

Andrew Butcher 7 년 전
부모
커밋
ff3f76bd8d
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 2 1
      roles/openshift_ca/tasks/main.yml

+ 2 - 1
roles/openshift_ca/tasks/main.yml

@@ -19,7 +19,8 @@
 
 - name: Reload generated facts
   openshift_facts:
-  when: hostvars[openshift_ca_host].install_result is changed
+  when:
+  - hostvars[openshift_ca_host].install_result | default({'changed':false}) is changed
 
 - name: Create openshift_ca_config_dir if it does not exist
   file: