use include_tasks instead of include

include is marked as deprecated since ansible 2.4[0]

Switch to include_tasks or import_playbook as necessary

[0] https://docs.ansible.com/ansible/2.4/include_module.html#deprecated

Change-Id: I247990c66e2f415cfe19225c6fad7de646c312d1
This commit is contained in:
zhulingjie 2018-10-11 14:32:21 -04:00
parent fa67753f17
commit 2403ad2a4c
3 changed files with 3 additions and 3 deletions

View File

@ -32,4 +32,4 @@
- nodepool_pip_virtualenv_python is not defined
- nodepool_pip_executable is not defined
- include: "install/{{ nodepool_install_method }}.yaml"
- include_tasks: "install/{{ nodepool_install_method }}.yaml"

View File

@ -24,4 +24,4 @@
set_fact:
nodepool_pip_name: "file://{{ nodepool_git_dest }}"
- include: pip.yaml
- include_tasks: pip.yaml

View File

@ -15,7 +15,7 @@
- name: Include OS-specific variables
include_vars: "{{ ansible_os_family | lower }}.yaml"
- include: "{{ nodepool_task }}.yaml"
- include_tasks: "{{ nodepool_task }}.yaml"
with_items: "{{ nodepool_task_manager }}"
loop_control:
loop_var: nodepool_task