The use of 'include' for tasks has been deprecated.[1]
[1] http://docs.ansible.com/ansible/latest/include_module.html
Change-Id: I940f4031b16860e69d2ca92e4fca82c5cc495aef
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
---
-- include: cache.yml
-- include: disk.yml
-- include: network.yml
+- import_tasks: cache.yml
+- import_tasks: disk.yml
+- import_tasks: network.yml
---
-- include: "{{ tasks }}.yml"
+- include_tasks: "{{ tasks }}.yml"
---
-- include: "gather-facts-{{ installer_type }}.yml"
+- include_tasks: "gather-facts-{{ installer_type }}.yml"
- name: generating inventory file
template: src=templates/hosts dest=./hosts
##############################################################################
---
-- include: "install-deps-{{ ansible_os_family|lower }}.yml"
+- include_tasks: "install-deps-{{ ansible_os_family|lower }}.yml"
---
-- include: "{{ tasks }}.yml"
+- include_tasks: "{{ tasks }}.yml"
path: "{{ qtip_workdir }}"
state: directory
-- include: install-deps.yml
+- import_tasks: install-deps.yml