We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ee236b commit 771435dCopy full SHA for 771435d
lib/ansible/inventory/ini.py
@@ -25,6 +25,7 @@
25
from ansible import errors
26
import shlex
27
import re
28
+import ast
29
30
class InventoryParser(object):
31
"""
@@ -116,7 +117,7 @@ def _parse_base_groups(self):
116
117
(k,v) = t.split("=")
118
except ValueError, e:
119
raise errors.AnsibleError("Invalid ini entry: %s - %s" % (t, str(e)))
- host.set_variable(k,v)
120
+ host.set_variable(k,ast.literal_eval(v))
121
self.groups[active_group_name].add_host(host)
122
123
# [southeast:children]
0 commit comments