Browse Source

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
ZhijunWei 8 months ago
parent
commit
a427089ea8
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      tests/test.yml

+ 6
- 6
tests/test.yml View File

@@ -13,21 +13,21 @@
13 13
 # See the License for the specific language governing permissions and
14 14
 # limitations under the License.
15 15
 
16
-- include: test-create-nfs-dev.yml
16
+- import_playbook: test-create-nfs-dev.yml
17 17
   when:
18 18
     - test_deploy_nfs | default(false) | bool
19 19
 
20 20
 # Setup the host
21
-- include: common/test-setup-host.yml
21
+- import_playbook: common/test-setup-host.yml
22 22
 
23 23
 # Install RabbitMQ/MariaDB
24
-- include: common/test-install-infra.yml
24
+- import_playbook: common/test-install-infra.yml
25 25
 
26 26
 # Install Keystone
27
-- include: common/test-install-keystone.yml
27
+- import_playbook: common/test-install-keystone.yml
28 28
 
29 29
 # Install Glance
30
-- include: common/test-install-glance.yml
30
+- import_playbook: common/test-install-glance.yml
31 31
 
32 32
 # Install and execute Tempest
33
-- include: common/test-install-tempest.yml
33
+- import_playbook: common/test-install-tempest.yml

Loading…
Cancel
Save