diff --git a/lib/ansible/playbook/role/__init__.py b/lib/ansible/playbook/role/__init__.py index ce82573dc03..10e14b4ac38 100644 --- a/lib/ansible/playbook/role/__init__.py +++ b/lib/ansible/playbook/role/__init__.py @@ -43,7 +43,10 @@ __all__ = ['Role', 'hash_params'] # strategies (ansible/plugins/strategy/__init__.py) def hash_params(params): if not isinstance(params, dict): - return params + if isinstance(params, list): + return frozenset(params) + else: + return params else: s = set() for k,v in iteritems(params):