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

Make variables local to the play

Fixes #1677.
This commit is contained in:
Daniel Hokka Zakrisson 2012-11-26 21:16:13 +01:00
parent fa63e9ce1f
commit 94fc3006e9

View file

@ -161,7 +161,7 @@ class Play(object):
if type(self.vars) not in [dict, list]: if type(self.vars) not in [dict, list]:
raise errors.AnsibleError("'vars' section must contain only key/value pairs") raise errors.AnsibleError("'vars' section must contain only key/value pairs")
vars = self.playbook.global_vars vars = {}
# translate a list of vars into a dict # translate a list of vars into a dict
if type(self.vars) == list: if type(self.vars) == list: