From 2403ad2a4c8b65942a26bb26626fb2b3c60097b9 Mon Sep 17 00:00:00 2001 From: zhulingjie Date: Thu, 11 Oct 2018 14:32:21 -0400 Subject: [PATCH] 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 --- tasks/install.yaml | 2 +- tasks/install/git.yaml | 2 +- tasks/main.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tasks/install.yaml b/tasks/install.yaml index f50c5a6..250157e 100644 --- a/tasks/install.yaml +++ b/tasks/install.yaml @@ -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" diff --git a/tasks/install/git.yaml b/tasks/install/git.yaml index 910c908..6a2cba0 100644 --- a/tasks/install/git.yaml +++ b/tasks/install/git.yaml @@ -24,4 +24,4 @@ set_fact: nodepool_pip_name: "file://{{ nodepool_git_dest }}" -- include: pip.yaml +- include_tasks: pip.yaml diff --git a/tasks/main.yaml b/tasks/main.yaml index 86a1bae..359e260 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -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