1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-12 11:12:06 +00:00

Update local_facts.fact

This commit is contained in:
A Holt 2020-08-20 12:51:17 -04:00 committed by GitHub
parent 773fc1dc0c
commit 39cc56369e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,24 +22,26 @@ DHCPCD_PATH=`which dhcpcd`
NM_PATH=`which NetworkManager`
case $OS_VER in
"fedora-18" | \
"fedora-22" | \
"debian-8" | \
"debian-9" | \
"debian-10" | \
"ubuntu-16" | \
"ubuntu-17" | \
"ubuntu-18" | \
"ubuntu-19" | \
"ubuntu-20" | \
"centos-7" | \
"raspbian-8" | \
"raspbian-9" | \
"fedora-18" | \
"fedora-22" | \
"debian-8" | \
"debian-9" | \
"debian-10" | \
"ubuntu-16" | \
"ubuntu-17" | \
"ubuntu-18" | \
"ubuntu-19" | \
"ubuntu-20" | \
"linuxmint-20" | \
"centos-7" | \
"raspbian-8" | \
"raspbian-9" | \
"raspbian-10")
;;
*) OS_VER="OS_not_supported"
;;
;;
*) OS_VER="OS_not_supported"
;;
esac
# get current version
BRANCH=`git rev-parse --abbrev-ref HEAD`
COMMIT=`git rev-parse --verify HEAD`
@ -71,7 +73,7 @@ ANSIBLE_VERSION=$(ansible --version|head -n 1|cut -f 2 -d " ")
if [ ! x$DHCPCD_PATH = x ]; then
DHCPCD=`systemctl is-enabled dhcpcd`
fi
# the check is debian family only is_redhad would use NetworkManager as the
# the check is debian family only is_redhat would use NetworkManager as the
# service name.
if [ ! x$NM_PATH = x ]; then
NM=`systemctl is-enabled network-manager`