Last active
August 14, 2024 16:36
-
-
Save rkrzr/f5387167fa7b4869e2dca8b713879562 to your computer and use it in GitHub Desktop.
Automatically generate ansible tags of the same name for each role in a playbook
I can't find any documentation on how to get the filenames in the respective role directory and creating tags to only run those filenames.
This is what "tasks_from" does when you include a role so it must be possible
Thx, works fine in Ansible 2.10
Thank you. This is very useful.
[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names
to new standard, use callbacks_enabled instead. This feature will be removed
from ansible-core in version 2.15. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
I would advise to change:
callback_whitelist = auto_tags
to callbacks_enabled = auto_tags
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cooool, thanks !