main.yml 519 B

12345678910111213141516
  1. ---
  2. - name: Set cloud provider facts
  3. openshift_facts:
  4. role: cloudprovider
  5. local_facts:
  6. kind: "{{ openshift_cloudprovider_kind | default(None) }}"
  7. - name: Create cloudprovider config dir
  8. file:
  9. path: "{{ openshift.common.config_base }}/cloudprovider"
  10. state: directory
  11. # Any files included here must use include_tasks instead of import_tasks due to
  12. # the dynamic nature of include_tasks
  13. - name: include the defined cloud provider files
  14. include_tasks: "{{ openshift_cloudprovider_kind }}.yml"