ansible: replace deprecated include by import_tasks

include_tasks and import_tasks have similar functionality.
Use import_tasks when importing non-variable depending files.
Further use import_tasks when not used within a loop.

Closes: OS#5797
Change-Id: I29766c65b9e1601a20aa8f20a438e8368c65f6a8
This commit is contained in:
Alexander Couzens 2022-11-29 13:34:57 +00:00
parent be18bcd4ed
commit 5b67b0d353
2 changed files with 3 additions and 3 deletions

View File

@ -57,4 +57,4 @@
shell: "docker info | grep -q 'Storage Driver: overlay2' || rm -rf /var/lib/docker/vfs"
# After docker is set up, add docuum to clean old docker images
- include: docuum.yml
- import_tasks: docuum.yml

View File

@ -9,8 +9,8 @@
shell: /usr/bin/zsh
groups: docker
- name: include git repos
include: git-repos.yml
- name: import git repos
import_tasks: git-repos.yml
- name: install distribution packages
apt: