use import_playbook 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: I87fa723334745680efd87743ac936815df664c4d
Closes-Bug: #1792761
This commit is contained in:
ZhijunWei 2018-08-19 12:29:29 -04:00 committed by weizj
parent 7727a95674
commit a427089ea8
1 changed files with 6 additions and 6 deletions

View File

@ -13,21 +13,21 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
- include: test-create-nfs-dev.yml - import_playbook: test-create-nfs-dev.yml
when: when:
- test_deploy_nfs | default(false) | bool - test_deploy_nfs | default(false) | bool
# Setup the host # Setup the host
- include: common/test-setup-host.yml - import_playbook: common/test-setup-host.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 and execute Tempest # Install and execute Tempest
- include: common/test-install-tempest.yml - import_playbook: common/test-install-tempest.yml