Changing validation task to use role's tags

Changing the validation internal task  to check for tags on the role itself and use that if they exist, otherwise fallback to always
pull/82953/head
Sudheera Dulan 8 months ago committed by Sudheera Dulan
parent 9e08f78bd3
commit 11c95648b1

@ -372,7 +372,8 @@ class Role(Base, Conditional, Taggable, CollectionSearch, Delegatable):
}, },
}, },
'name': task_name, 'name': task_name,
'tags': ['always'], # Unless role is specifically tagged, the tag is set to 'always'
'tags': ['always'] if not self.tags else self.tags,
} }
def _load_role_yaml(self, subdir, main=None, allow_dir=False): def _load_role_yaml(self, subdir, main=None, allow_dir=False):

Loading…
Cancel
Save