add short name for distros

Change-Id: Ia5babcafa1a7a58bdf8a4f5961341a840ca1c105
Signed-off-by: cloudnull <kevin.carter@rackspace.com>
This commit is contained in:
cloudnull 2018-11-29 11:25:12 -06:00
parent 2ec3466ad8
commit d4fd3c6746
1 changed files with 2 additions and 2 deletions

View File

@ -23,9 +23,9 @@ if [[ ! -e "${ANSIBLE_EMBED_HOME}/bin/ansible" ]]; then
if [ ${ID} = "ubuntu" ]; then
apt-get update
apt-get -y install python-virtualenv
elif [ ${ID} = "opensuse" ]; then
elif [ ${ID} = "opensuse" ] || [ ${ID} = "suse" ]; then
zypper install -y python-virtualenv
elif [ ${ID} = "centos" ] || [ ${ID} ="redhat" ]; then
elif [ ${ID} = "centos" ] || [ ${ID} = "redhat" ] || [ ${ID} = "rhel" ]; then
yum install -y python-virtualenv
else
echo "Unknown operating system"