summaryrefslogtreecommitdiffstats
path: root/roles/openshift_cloud_provider
diff options
context:
space:
mode:
Diffstat (limited to 'roles/openshift_cloud_provider')
-rw-r--r--roles/openshift_cloud_provider/tasks/main.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/openshift_cloud_provider/tasks/main.yml b/roles/openshift_cloud_provider/tasks/main.yml
index d7442924f..4924f051c 100644
--- a/roles/openshift_cloud_provider/tasks/main.yml
+++ b/roles/openshift_cloud_provider/tasks/main.yml
@@ -3,7 +3,9 @@
openshift_facts:
role: cloudprovider
openshift_env: "{{ hostvars[inventory_hostname]
- | oo_merge_dicts(hostvars)
+ | oo_merge_dicts(vars if (ansible_version.full
+ | version_compare('2.0', 'ge')
+ | bool) else hostvars)
| oo_openshift_env }}"
openshift_env_structures:
- 'openshift.cloudprovider.aws.*'