mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Playbook: create one task per include instead of per argument.
This commit is contained in:
parent
77a6315939
commit
a370261dce
1 changed files with 4 additions and 4 deletions
|
@ -105,10 +105,10 @@ class PlayBook(object):
|
||||||
if x.find("=") != -1:
|
if x.find("=") != -1:
|
||||||
(k,v) = x.split("=")
|
(k,v) = x.split("=")
|
||||||
inject_vars[k] = v
|
inject_vars[k] = v
|
||||||
included = utils.template_from_file(path, inject_vars)
|
included = utils.template_from_file(path, inject_vars)
|
||||||
included = utils.parse_yaml(included)
|
included = utils.parse_yaml(included)
|
||||||
for x in included:
|
for x in included:
|
||||||
new_tasks.append(x)
|
new_tasks.append(x)
|
||||||
|
|
||||||
# *****************************************************
|
# *****************************************************
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue