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: