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: Id9296d69814f3ad72fee5095893fdd7f1729aa5c
This commit is contained in:
caoyuan 2018-07-24 18:58:09 +08:00
parent e4f8c03c9b
commit ac625f81dd
2 changed files with 12 additions and 12 deletions

View File

@ -47,15 +47,15 @@
tags:
- always
- include: aodh_pre_install.yml
- include_tasks: aodh_pre_install.yml
tags:
- aodh-install
- include: aodh_install.yml
- include_tasks: aodh_install.yml
tags:
- aodh-install
- include: aodh_post_install.yml
- include_tasks: aodh_post_install.yml
tags:
- aodh-config
@ -104,17 +104,17 @@
- common-mq
- aodh-config
- include: aodh_db_setup.yml
- include_tasks: aodh_db_setup.yml
when:
- inventory_hostname == groups['aodh_all'][0]
tags:
- aodh-config
- include: aodh_apache.yml
- include_tasks: aodh_apache.yml
tags:
- aodh-config
- include: aodh_service_setup.yml
- include_tasks: aodh_service_setup.yml
when:
- inventory_hostname == groups['aodh_all'][0]
tags:

View File

@ -14,19 +14,19 @@
# 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 Keystone
- include: common/test-install-keystone.yml
- import_playbook: common/test-install-keystone.yml
# Install Gnocchi
- include: common/test-install-gnocchi.yml
- import_playbook: common/test-install-gnocchi.yml
# Install Aodh
- include: test-install-aodh.yml
- import_playbook: test-install-aodh.yml
# Install and execute Tempest
- include: common/test-install-tempest.yml
- import_playbook: common/test-install-tempest.yml