Correct usage of include_role
@@ -14,7 +14,7 @@
msg: "openshift_aws_region={{ openshift_aws_region | default('us-east-1') }}"
- name: bring lib_openshift into scope
- include_role:
+ import_role:
name: lib_openshift
- name: fetch masters
@@ -14,8 +14,9 @@
pre_tasks:
- name: Load lib_openshift modules
+
- name: Collect all routers
oc_obj:
state: list
@@ -291,7 +291,7 @@
# TODO: To better handle re-trying failed upgrades, it would be nice to check if the node
@@ -8,7 +8,7 @@
@@ -1,8 +1,4 @@
---
-- name: Ensure lib_openshift modules are available
- role: lib_openshift
-
- name: Ensure OpenShift facts module is available
include_role:
role: openshift_facts