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
This commit is contained in:
caoyuan 2018-07-24 18:58:22 +08:00
parent 3d24b2fcf1
commit 3cd7fbdc28
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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