This commit is contained in:
@@ -26,8 +26,9 @@ 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:
|
||||||
for task in host['tasks']:
|
if "tasks" in host:
|
||||||
deployable_tags.append(task['tags'])
|
for task in host['tasks']:
|
||||||
|
deployable_tags.append(task['tags'])
|
||||||
|
|
||||||
if len(update_list["images"]) > 0:
|
if len(update_list["images"]) > 0:
|
||||||
already_deployed = []
|
already_deployed = []
|
||||||
|
|||||||
Reference in New Issue
Block a user