mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update local_facts.fact
This commit is contained in:
parent
c3aa051770
commit
0e7169cf1f
1 changed files with 3 additions and 3 deletions
|
@ -92,9 +92,9 @@ tmp=$(ansible --version) &&
|
|||
ANSIBLE_VERSION=$(echo "$tmp" | head -n 1 | cut -f 2 -d " ")
|
||||
|
||||
|
||||
# THESE LAST 3 ARE DIFFEENT as "systemctl is-enabled" unhelpfully returns the
|
||||
# same rerror code (i.e. 1) REGARDLESS whether service is (A) disabled or
|
||||
# (B) doesn't exist. SO WE TEST THE STRING OUTPUT INSTEAD OF THE RETURN CODE.
|
||||
# THE LAST 3 BELOW ARE DIFFERENT as "systemctl is-enabled" unhelpfully returns
|
||||
# the same error code (i.e. 1) REGARDLESS whether the service is (A) disabled
|
||||
# or (B) doesn't exist. SO WE TEST THE STRING OUTPUT INSTEAD OF THE RETURN CODE
|
||||
|
||||
tmp=$(systemctl is-enabled dhcpcd)
|
||||
[[ $tmp != "" ]] &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue