user_info['packages'].extend([
'git',
])
- # On CentOS/RHEL/Fedora, write the correct mac address
+ # On CentOS/RHEL/Fedora, write the correct mac address and
+ # install redhab-lsb-core for `lsb_release`
if os_type in ['centos', 'rhel', 'fedora']:
user_info['runcmd'].extend([
['sed', '-ie', 's/HWADDR=".*"/HWADDR="%s"/' % mac_address,
'/etc/sysconfig/network-scripts/ifcfg-eth0'],
])
+ user_info['packages'].append('redhat-lsb-core')
# On Ubuntu, starting with 16.04, we need to install 'python' to get
# python2.7, which ansible needs
elif os_type == 'ubuntu':