From 3cd7fbdc284eade168c463cb054853fe874a0123 Mon Sep 17 00:00:00 2001 From: caoyuan Date: Tue, 24 Jul 2018 18:58:22 +0800 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: I739584e0f4585832dbc5ee37a82eda5582866023 --- tasks/main.yml | 6 +++--- tests/test.yml | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 8d8045f..db3d391 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -24,15 +24,15 @@ tags: - always -- include: almanach_pre_install.yml +- include_tasks: almanach_pre_install.yml tags: - almanach-install -- include: almanach_install.yml +- include_tasks: almanach_install.yml tags: - almanach-install -- include: almanach_post_install.yml +- include_tasks: almanach_post_install.yml tags: - almanach-install - almanach-config diff --git a/tests/test.yml b/tests/test.yml index 08916a0..a725e24 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -14,16 +14,16 @@ # limitations under the License. # Setup the host -- include: common/test-setup-host.yml +- import_playbook: common/test-setup-host.yml # Install RabbitMQ/MariaDB -- include: common/test-install-infra.yml +- import_playbook: common/test-install-infra.yml # Install MongoDB -- include: test-install-mongodb.yml +- import_playbook: test-install-mongodb.yml # Install Almanach -- include: test-install-almanach.yml +- import_playbook: test-install-almanach.yml # Test Almanach -- include: test-functional-almanach.yml +- import_playbook: test-functional-almanach.yml