main.yml 524 B

123456789101112131415161718192021
  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. when: has_cloudprovider | bool
  12. - include_tasks: openstack.yml
  13. when: cloudprovider_is_openstack | bool
  14. - include_tasks: aws.yml
  15. when: cloudprovider_is_aws | bool
  16. - include_tasks: gce.yml
  17. when: cloudprovider_is_gce | bool