blob: 471fd686bd3f90ad8fec29be5e23c2928cc88e1a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
---
- name: Set cloud provider facts
openshift_facts:
role: cloudprovider
openshift_env: "{{ item | oo_openshift_env }}"
openshift_env_structures:
- 'openshift.cloudprovider.aws.*'
- 'openshift.cloudprovider.openstack.*'
no_log: true
with_items:
- "{{ hostvars[inventory_hostname] }}"
- "{{ hostvars }}"
- name: Create cloudprovider config dir
file:
path: "{{ openshift.common.config_base }}/cloudprovider"
state: directory
when: has_cloudprovider | bool
- include: openstack.yml
when: cloudprovider_is_openstack | bool
- include: aws.yml
when: cloudprovider_is_aws | bool
|