tags
This commit is contained in:
parent
b574070e95
commit
fffdd5cb5b
1 changed files with 2 additions and 1 deletions
|
@ -161,7 +161,8 @@ def main():
|
|||
mustRun = True
|
||||
|
||||
# Teste si un élément commun entre les tags mentionnés dans la conf et les tags en argument
|
||||
if len(set(args.tags).intersection(config['ansible_playbooks'][entry]['tags'])) > 0:
|
||||
if 'tags' in config['ansible_playbooks'][entry] and \
|
||||
len(set(args.tags).intersection(config['ansible_playbooks'][entry]['tags'])) > 0:
|
||||
mustRun = True
|
||||
|
||||
if mustRun == True:
|
||||
|
|
Loading…
Reference in a new issue