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: I739584e0f4585832dbc5ee37a82eda5582866023
caoyuan 9 months ago
parent
commit
3cd7fbdc28
2 changed files with 8 additions and 8 deletions
  1. 3
    3
      tasks/main.yml
  2. 5
    5
      tests/test.yml

+ 3
- 3
tasks/main.yml View File

@@ -24,15 +24,15 @@
24 24
   tags:
25 25
     - always
26 26
 
27
-- include: almanach_pre_install.yml
27
+- include_tasks: almanach_pre_install.yml
28 28
   tags:
29 29
     - almanach-install
30 30
 
31
-- include: almanach_install.yml
31
+- include_tasks: almanach_install.yml
32 32
   tags:
33 33
     - almanach-install
34 34
 
35
-- include: almanach_post_install.yml
35
+- include_tasks: almanach_post_install.yml
36 36
   tags:
37 37
     - almanach-install
38 38
     - almanach-config

+ 5
- 5
tests/test.yml View File

@@ -14,16 +14,16 @@
14 14
 # limitations under the License.
15 15
 
16 16
 # Setup the host
17
-- include: common/test-setup-host.yml
17
+- import_playbook: common/test-setup-host.yml
18 18
 
19 19
 # Install RabbitMQ/MariaDB
20
-- include: common/test-install-infra.yml
20
+- import_playbook: common/test-install-infra.yml
21 21
 
22 22
 # Install MongoDB
23
-- include: test-install-mongodb.yml
23
+- import_playbook: test-install-mongodb.yml
24 24
 
25 25
 # Install Almanach
26
-- include: test-install-almanach.yml
26
+- import_playbook: test-install-almanach.yml
27 27
 
28 28
 # Test Almanach
29
-- include: test-functional-almanach.yml
29
+- import_playbook: test-functional-almanach.yml

Loading…
Cancel
Save