Matching certain string in playbook comments #3192
Unanswered
aymen-adjali
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to match certain string patterns that appear in comments?
eg: return when the string "hello" is found in any comment within the playbook.
I have tried to use both match and matchtask and they both seem to not be able to detect comments. Even using 'line' with the match method skips the comments. If there is any way to do this please let me know!
Also, I have found methods like 'run' and 'process_matched_yaml' to try to do this but cant seem to get them to work either.
Thank you :)
Beta Was this translation helpful? Give feedback.
All reactions