use include_tasks instead of include

Change-Id: I8092f67063f5925f25ebbbffd22a1454a6a31adb
This commit is contained in:
zhulingjie 2018-10-11 14:32:44 -04:00
parent 16aeaf899f
commit 42c7fdadd5
2 changed files with 4 additions and 4 deletions

View File

@ -5,10 +5,10 @@
- ca-certificates
- curl
- include: ubuntu.yml
- include_tasks: ubuntu.yml
when:
ansible_pkg_mgr == 'apt'
- include: centos.yml
- include_tasks: centos.yml
when:
ansible_pkg_mgr == 'yum'

View File

@ -1,9 +1,9 @@
---
- include: ubuntu.yml
- include_tasks: ubuntu.yml
when:
ansible_pkg_mgr == 'apt'
- include: centos.yml
- include_tasks: centos.yml
when:
ansible_pkg_mgr == 'yum'