1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Add a new password pattern to the run_command filter

This commit is contained in:
James Cammarata 2014-06-12 07:42:07 -05:00
parent aaa74352a7
commit b4d130d086

View file

@ -1137,6 +1137,7 @@ class AnsibleModule(object):
# that are not balanced
# source: http://blog.stevenlevithan.com/archives/match-quoted-string
r'([-]{0,2}pass[-]?(?:word|wd)?[=\s]?)((?:["\'])?(?:[^\s])*(?:\1)?)',
r'^(?P<before>.*:)(?P<password>.*)(?P<after>\@.*)$',
# TODO: add more regex checks here
]
for re_str in clean_re_strings: