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: I99486c136d34cda038ea3c2d543df4081178ce60
This commit is contained in:
caoyuan 2018-07-24 18:58:13 +08:00
parent 81f6bda4c0
commit deaee29ec3
2 changed files with 14 additions and 14 deletions

View File

@ -25,20 +25,20 @@
tags: tags:
- always - always
- include: tempest_install.yml - include_tasks: tempest_install.yml
tags: tags:
- tempest-install - tempest-install
- include: tempest_resources.yml - include_tasks: tempest_resources.yml
run_once: yes run_once: yes
tags: tags:
- tempest-config - tempest-config
- include: tempest_post_install.yml - include_tasks: tempest_post_install.yml
tags: tags:
- tempest-config - tempest-config
- include: tempest_run.yml - include_tasks: tempest_run.yml
when: tempest_run | bool when: tempest_run | bool
tags: tags:
- tempest-config - tempest-config

View File

@ -14,31 +14,31 @@
# limitations under the License. # limitations under the License.
# Prepare the user ssh keys # Prepare the user ssh keys
- include: common/test-prepare-keys.yml - import_playbook: common/test-prepare-keys.yml
# Prepare the host # Prepare the host
- include: common/test-prepare-host.yml - import_playbook: common/test-prepare-host.yml
# Prepare the containers # Prepare the containers
- include: common/test-prepare-containers.yml - import_playbook: common/test-prepare-containers.yml
# Install RabbitMQ/MariaDB # Install RabbitMQ/MariaDB
- include: common/test-install-infra.yml - import_playbook: common/test-install-infra.yml
# Install Keystone # Install Keystone
- include: common/test-install-keystone.yml - import_playbook: common/test-install-keystone.yml
# Install Glance # Install Glance
- include: common/test-install-glance.yml - import_playbook: common/test-install-glance.yml
# Install Neutron # Install Neutron
- include: common/test-install-neutron.yml - import_playbook: common/test-install-neutron.yml
# Install Nova # Install Nova
- include: common/test-install-nova.yml - import_playbook: common/test-install-nova.yml
# Install and execute Tempest # Install and execute Tempest
- include: common/test-install-tempest.yml - import_playbook: common/test-install-tempest.yml
# Check whether Tempest executed successfully # Check whether Tempest executed successfully
- include: test-tempest-functional.yml - import_playbook: test-tempest-functional.yml