From b4d130d086f599092f072450829fb05ebce0e6ed Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Thu, 12 Jun 2014 07:42:07 -0500 Subject: [PATCH] Add a new password pattern to the run_command filter --- lib/ansible/module_utils/basic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/module_utils/basic.py b/lib/ansible/module_utils/basic.py index 423bdfb5145..156aa480a07 100644 --- a/lib/ansible/module_utils/basic.py +++ b/lib/ansible/module_utils/basic.py @@ -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.*:)(?P.*)(?P\@.*)$', # TODO: add more regex checks here ] for re_str in clean_re_strings: