diff options
author | Russell Teague <rteague@redhat.com> | 2017-11-27 16:01:46 -0500 |
---|---|---|
committer | Russell Teague <rteague@redhat.com> | 2017-11-27 16:01:46 -0500 |
commit | 36e7114057bacb5cde7f92b927a1ad4914e2a82c (patch) | |
tree | 570fe55072c45d95445bbb089c584e3788950166 /playbooks/common | |
parent | 1ef463e727e202ba7595976f0478110b3b7585d0 (diff) | |
download | openshift-36e7114057bacb5cde7f92b927a1ad4914e2a82c.tar.gz openshift-36e7114057bacb5cde7f92b927a1ad4914e2a82c.tar.bz2 openshift-36e7114057bacb5cde7f92b927a1ad4914e2a82c.tar.xz openshift-36e7114057bacb5cde7f92b927a1ad4914e2a82c.zip |
Correct usage of include_role
Switch to import_role for some required roles.
Diffstat (limited to 'playbooks/common')
3 files changed, 4 insertions, 3 deletions
diff --git a/playbooks/common/openshift-cluster/upgrades/post_control_plane.yml b/playbooks/common/openshift-cluster/upgrades/post_control_plane.yml index 3aa9e0460..c458184c9 100644 --- a/playbooks/common/openshift-cluster/upgrades/post_control_plane.yml +++ b/playbooks/common/openshift-cluster/upgrades/post_control_plane.yml @@ -14,8 +14,9 @@ pre_tasks: - name: Load lib_openshift modules - include_role: + import_role: name: lib_openshift + - name: Collect all routers oc_obj: state: list diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml index d08c6e940..d7a52707c 100644 --- a/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml +++ b/playbooks/common/openshift-cluster/upgrades/upgrade_control_plane.yml @@ -291,7 +291,7 @@ pre_tasks: - name: Load lib_openshift modules - include_role: + import_role: name: lib_openshift # TODO: To better handle re-trying failed upgrades, it would be nice to check if the node diff --git a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml index 5dc8193a7..75ffd3fe9 100644 --- a/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml +++ b/playbooks/common/openshift-cluster/upgrades/upgrade_nodes.yml @@ -8,7 +8,7 @@ pre_tasks: - name: Load lib_openshift modules - include_role: + import_role: name: lib_openshift # TODO: To better handle re-trying failed upgrades, it would be nice to check if the node |