1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +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

@ -32,6 +32,7 @@ case $OS_VER in
"ubuntu-18" | \ "ubuntu-18" | \
"ubuntu-19" | \ "ubuntu-19" | \
"ubuntu-20" | \ "ubuntu-20" | \
"linuxmint-20" | \
"centos-7" | \ "centos-7" | \
"raspbian-8" | \ "raspbian-8" | \
"raspbian-9" | \ "raspbian-9" | \
@ -40,6 +41,7 @@ case $OS_VER in
*) OS_VER="OS_not_supported" *) OS_VER="OS_not_supported"
;; ;;
esac esac
# get current version # get current version
BRANCH=`git rev-parse --abbrev-ref HEAD` BRANCH=`git rev-parse --abbrev-ref HEAD`
COMMIT=`git rev-parse --verify 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 if [ ! x$DHCPCD_PATH = x ]; then
DHCPCD=`systemctl is-enabled dhcpcd` DHCPCD=`systemctl is-enabled dhcpcd`
fi 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. # service name.
if [ ! x$NM_PATH = x ]; then if [ ! x$NM_PATH = x ]; then
NM=`systemctl is-enabled network-manager` NM=`systemctl is-enabled network-manager`