This commit is contained in:
@@ -26,6 +26,7 @@ def main():
|
|||||||
with open("main.yml", 'r') as file:
|
with open("main.yml", 'r') as file:
|
||||||
data = yaml.safe_load(file)
|
data = yaml.safe_load(file)
|
||||||
for host in data:
|
for host in data:
|
||||||
|
if "tasks" in host:
|
||||||
for task in host['tasks']:
|
for task in host['tasks']:
|
||||||
deployable_tags.append(task['tags'])
|
deployable_tags.append(task['tags'])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user