diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py index b80f97a22dc..414a8c66001 100755 --- a/lib/ansible/runner.py +++ b/lib/ansible/runner.py @@ -83,8 +83,10 @@ class Runner(object): return False if not pattern: pattern = self.pattern - if fnmatch.fnmatch(host_name, pattern): - return True + subpatterns = pattern.split(";") + for subpattern in subpatterns: + if fnmatch.fnmatch(host_name, subpattern): + return True return False def _connect(self, host):