mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
'ansible --version' output was being truncated
This commit is contained in:
parent
5fba4fb3bf
commit
2ebf8aefc9
3 changed files with 12 additions and 5 deletions
|
@ -89,7 +89,10 @@ tmp=$(cat /proc/device-tree/model) &&
|
|||
RPI_MODEL=$tmp
|
||||
|
||||
tmp=$(ansible --version) &&
|
||||
ANSIBLE_VERSION=$(echo "$tmp" | head -n 1 | cut -f 2 -d " ")
|
||||
ANSIBLE_VERSION=$(echo "$tmp" | head -1 | cut -f 2- -d " ")
|
||||
# Above works with 'ansible [core 2.11.0rc2]' -- these old ways do not:
|
||||
#ANSIBLE_VERSION=$(echo "$tmp" | head -1 | awk '{print $2}')
|
||||
#ANSIBLE_VERSION=$(echo "$tmp" | head -1 | sed -e 's/.* //')
|
||||
|
||||
|
||||
# THE LAST 3 BELOW ARE DIFFERENT as "systemctl is-enabled" unhelpfully returns
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue