summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cloud_provider/tasks/main.yml
blob: dff492a69f49bee182b8b6afc35925a5ed0665d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
- name: Set cloud provider facts
  openshift_facts:
    role: cloudprovider
    local_facts:
      kind: "{{ openshift_cloudprovider_kind | default(None) }}"

- name: Create cloudprovider config dir
  file:
    path: "{{ openshift.common.config_base }}/cloudprovider"
    state: directory
  when: has_cloudprovider | bool

- include_tasks: openstack.yml
  when: cloudprovider_is_openstack | bool

- include_tasks: aws.yml
  when: cloudprovider_is_aws | bool

- include_tasks: gce.yml
  when: cloudprovider_is_gce | bool