use include_tasks instead of include

Change-Id: I8358c8a1e8975736a4f7b7e8c30fa9639e7b3c19
This commit is contained in:
zhulingjie 2018-10-11 14:32:13 -04:00
parent 318c0c6e97
commit 6f1bd95dd8
2 changed files with 2 additions and 2 deletions

View File

@ -12,4 +12,4 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- include: "install/{{ logrotate_install_method }}.yaml"
- include_tasks: "install/{{ logrotate_install_method }}.yaml"

View File

@ -12,7 +12,7 @@
# License for the specific language governing permissions and limitations
# under the License.
---
- include: "{{ logrotate_task }}.yaml"
- include_tasks: "{{ logrotate_task }}.yaml"
with_items: "{{ logrotate_task_manager }}"
loop_control:
loop_var: logrotate_task