From 50751e3c5e8e8dca97cd27d4c93944515666c8b5 Mon Sep 17 00:00:00 2001
From: Russell Teague <rteague@redhat.com>
Date: Wed, 6 Dec 2017 09:48:59 -0500
Subject: Include Deprecation: Convert to include_tasks

---
 roles/openshift_management/tasks/main.yml            | 12 ++++++------
 roles/openshift_management/tasks/storage/storage.yml |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)

(limited to 'roles/openshift_management/tasks')

diff --git a/roles/openshift_management/tasks/main.yml b/roles/openshift_management/tasks/main.yml
index 3bade9e8c..f212dba7c 100644
--- a/roles/openshift_management/tasks/main.yml
+++ b/roles/openshift_management/tasks/main.yml
@@ -3,7 +3,7 @@
 # Users, projects, and privileges
 
 - name: Run pre-install Management validation checks
-  include: validate.yml
+  include_tasks: validate.yml
 
 # This creates a service account allowing Container Provider
 # integration (managing OCP/Origin via MIQ/Management)
@@ -18,18 +18,18 @@
     display_name: "{{ openshift_management_project_description }}"
 
 - name: Create and Authorize Management Accounts
-  include: accounts.yml
+  include_tasks: accounts.yml
 
 ######################################################################
 # STORAGE - Initialize basic storage class
 - name: Determine the correct NFS host if required
-  include: storage/nfs_server.yml
+  include_tasks: storage/nfs_server.yml
   when: openshift_management_storage_class in ['nfs', 'nfs_external']
 
 #---------------------------------------------------------------------
 # * nfs - set up NFS shares on the first master for a proof of concept
 - name: Create required NFS exports for Management app storage
-  include: storage/nfs.yml
+  include_tasks: storage/nfs.yml
   when: openshift_management_storage_class == 'nfs'
 
 #---------------------------------------------------------------------
@@ -56,14 +56,14 @@
 ######################################################################
 # APPLICATION TEMPLATE
 - name: Install the Management app and PV templates
-  include: template.yml
+  include_tasks: template.yml
 
 ######################################################################
 # APP & DB Storage
 
 # For local/external NFS backed installations
 - name: "Create the required App and DB PVs using {{ openshift_management_storage_class }}"
-  include: storage/create_nfs_pvs.yml
+  include_tasks: storage/create_nfs_pvs.yml
   when:
     - openshift_management_storage_class in ['nfs', 'nfs_external']
 
diff --git a/roles/openshift_management/tasks/storage/storage.yml b/roles/openshift_management/tasks/storage/storage.yml
index d8bf7aa3e..a3675b29b 100644
--- a/roles/openshift_management/tasks/storage/storage.yml
+++ b/roles/openshift_management/tasks/storage/storage.yml
@@ -1,3 +1,3 @@
 ---
-- include: nfs.yml
+- include_tasks: nfs.yml
   when: not (openshift_cloudprovider_kind is defined and (openshift_cloudprovider_kind == 'aws' or openshift_cloudprovider_kind == 'gce'))
-- 
cgit v1.2.3