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
changes/76/585276/6
caoyuan 4 years ago
parent 81f6bda4c0
commit deaee29ec3
  1. 8
      tasks/main.yml
  2. 20
      tests/test.yml

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

@ -14,31 +14,31 @@
# limitations under the License.
# Prepare the user ssh keys
- include: common/test-prepare-keys.yml
- import_playbook: common/test-prepare-keys.yml
# Prepare the host
- include: common/test-prepare-host.yml
- import_playbook: common/test-prepare-host.yml
# Prepare the containers
- include: common/test-prepare-containers.yml
- import_playbook: common/test-prepare-containers.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 Glance
- include: common/test-install-glance.yml
- import_playbook: common/test-install-glance.yml
# Install Neutron
- include: common/test-install-neutron.yml
- import_playbook: common/test-install-neutron.yml
# Install Nova
- include: common/test-install-nova.yml
- import_playbook: common/test-install-nova.yml
# Install and execute Tempest
- include: common/test-install-tempest.yml
- import_playbook: common/test-install-tempest.yml
# Check whether Tempest executed successfully
- include: test-tempest-functional.yml
- import_playbook: test-tempest-functional.yml

Loading…
Cancel
Save