mirror of
https://github.com/iiab/iiab.git
synced 2025-02-14 20:22:08 +00:00
Update local_facts.fact
This commit is contained in:
parent
773fc1dc0c
commit
39cc56369e
1 changed files with 19 additions and 17 deletions
|
@ -22,24 +22,26 @@ DHCPCD_PATH=`which dhcpcd`
|
||||||
NM_PATH=`which NetworkManager`
|
NM_PATH=`which NetworkManager`
|
||||||
|
|
||||||
case $OS_VER in
|
case $OS_VER in
|
||||||
"fedora-18" | \
|
"fedora-18" | \
|
||||||
"fedora-22" | \
|
"fedora-22" | \
|
||||||
"debian-8" | \
|
"debian-8" | \
|
||||||
"debian-9" | \
|
"debian-9" | \
|
||||||
"debian-10" | \
|
"debian-10" | \
|
||||||
"ubuntu-16" | \
|
"ubuntu-16" | \
|
||||||
"ubuntu-17" | \
|
"ubuntu-17" | \
|
||||||
"ubuntu-18" | \
|
"ubuntu-18" | \
|
||||||
"ubuntu-19" | \
|
"ubuntu-19" | \
|
||||||
"ubuntu-20" | \
|
"ubuntu-20" | \
|
||||||
"centos-7" | \
|
"linuxmint-20" | \
|
||||||
"raspbian-8" | \
|
"centos-7" | \
|
||||||
"raspbian-9" | \
|
"raspbian-8" | \
|
||||||
|
"raspbian-9" | \
|
||||||
"raspbian-10")
|
"raspbian-10")
|
||||||
;;
|
;;
|
||||||
*) 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`
|
||||||
|
|
Loading…
Reference in a new issue