main.yml 627 B

12345678910111213141516171819202122
  1. ---
  2. - name: Set cloud provider facts
  3. openshift_facts:
  4. role: cloudprovider
  5. openshift_env: "{{ hostvars
  6. | oo_merge_hostvars(vars, inventory_hostname)
  7. | oo_openshift_env }}"
  8. openshift_env_structures:
  9. - 'openshift.cloudprovider.aws.*'
  10. - 'openshift.cloudprovider.openstack.*'
  11. - name: Create cloudprovider config dir
  12. file:
  13. path: "{{ openshift.common.config_base }}/cloudprovider"
  14. state: directory
  15. when: has_cloudprovider | bool
  16. - include: openstack.yml
  17. when: cloudprovider_is_openstack | bool
  18. - include: aws.yml
  19. when: cloudprovider_is_aws | bool