main.yaml 839 B

12345678910111213141516171819
  1. ---
  2. - name: Set default image variables based on openshift_deployment_type
  3. include_vars: "{{ var_file_name }}"
  4. with_first_found:
  5. - "{{ openshift_deployment_type }}.yml"
  6. - "default_images.yml"
  7. loop_control:
  8. loop_var: var_file_name
  9. - name: Set eventrouter image facts
  10. set_fact:
  11. openshift_logging_eventrouter_image_prefix: "{{ openshift_logging_eventrouter_image_prefix | default(__openshift_logging_eventrouter_image_prefix) }}"
  12. openshift_logging_eventrouter_image_version: "{{ openshift_logging_eventrouter_image_version | default(__openshift_logging_eventrouter_image_version) }}"
  13. - include_tasks: install_eventrouter.yaml
  14. when: openshift_logging_install_eventrouter | default(false) | bool
  15. - include_tasks: delete_eventrouter.yaml
  16. when: not openshift_logging_install_eventrouter | default(false) | bool