Add Ubuntu 20.04 support and use Python 3 (#6157)
This commit is contained in:
@ -319,9 +319,7 @@ def openstack_host(resource, module_name):
|
||||
|
||||
# attrs specific to Mantl
|
||||
attrs.update({
|
||||
'consul_dc': _clean_dc(attrs['metadata'].get('dc', module_name)),
|
||||
'role': attrs['metadata'].get('role', 'none'),
|
||||
'ansible_python_interpreter': attrs['metadata'].get('python_bin','python')
|
||||
'role': attrs['metadata'].get('role', 'none')
|
||||
})
|
||||
|
||||
# add groups based on attrs
|
||||
@ -331,10 +329,6 @@ def openstack_host(resource, module_name):
|
||||
for item in list(attrs['metadata'].items()))
|
||||
groups.append('os_region=' + attrs['region'])
|
||||
|
||||
# groups specific to Mantl
|
||||
groups.append('role=' + attrs['metadata'].get('role', 'none'))
|
||||
groups.append('dc=' + attrs['consul_dc'])
|
||||
|
||||
# groups specific to kubespray
|
||||
for group in attrs['metadata'].get('kubespray_groups', "").split(","):
|
||||
groups.append(group)
|
||||
|
Reference in New Issue
Block a user