fix inventory script (#4342)
hosts are ordered dictionary remove ansible_user from inventory file
This commit is contained in:
parent
7b3e59ed0a
commit
254a0ab69d
1 changed files with 1 additions and 2 deletions
|
@ -127,8 +127,7 @@ class KubesprayInventory(object):
|
||||||
if group == 'all':
|
if group == 'all':
|
||||||
self.debug("Adding group {0}".format(group))
|
self.debug("Adding group {0}".format(group))
|
||||||
if group not in self.yaml_config:
|
if group not in self.yaml_config:
|
||||||
all_dict = OrderedDict([('hosts', {}),
|
all_dict = OrderedDict([('hosts', OrderedDict({})),
|
||||||
('vars', {'ansible_user': 'centos'}),
|
|
||||||
('children', OrderedDict({}))])
|
('children', OrderedDict({}))])
|
||||||
self.yaml_config = {'all': all_dict }
|
self.yaml_config = {'all': all_dict }
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue