Browse Source

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: Id7acc3fe99f8901a374894be3afdf467b7fed131
zhulingjie 6 months ago
parent
commit
7b86d4cd34
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      playbooks/integration/run.yaml

+ 4
- 4
playbooks/integration/run.yaml View File

@@ -4,13 +4,13 @@
4 4
     OS_CLOUD: devstack-admin
5 5
 
6 6
   tasks:
7
-    - include: ssh-key.yaml
7
+    - include_tasks: ssh-key.yaml
8 8
 
9
-    - include: cirros-image.yaml
9
+    - include_tasks: cirros-image.yaml
10 10
       when: metalsmith_whole_disk_image is not defined
11 11
 
12 12
     - name: Test a whole-disk image
13
-      include: exercise.yaml
13
+      include_tasks: exercise.yaml
14 14
       vars:
15 15
         metalsmith_image: "{{ metalsmith_whole_disk_image }}"
16 16
         metalsmith_image_checksum: "{{ metalsmith_whole_disk_checksum | default('') }}"
@@ -18,7 +18,7 @@
18 18
         metalsmith_swap_size:
19 19
 
20 20
     - name: Test a partition image
21
-      include: exercise.yaml
21
+      include_tasks: exercise.yaml
22 22
       vars:
23 23
         metalsmith_image: "{{ metalsmith_partition_image }}"
24 24
         metalsmith_image_checksum: "{{ metalsmith_partition_checksum | default('') }}"

Loading…
Cancel
Save