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:
parent
773fc1dc0c
commit
39cc56369e
1 changed files with 19 additions and 17 deletions
|
@ -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`
|
||||||
|
|
Loading…
Reference in a new issue