Skip to content

Commit 639ad35

Browse files
committed
linux: enhance uname output
The new ansible outpuyt format changes changes the way we get results, this is perhaps desriable sometimes, but for the simple uname command it is not. Fix this by adding a simple adhoc command. Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 9a68ae9 commit 639ad35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

workflows/linux/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,9 @@ linux-reboot:
159159

160160
PHONY += uname
161161
uname:
162-
$(Q)ansible-playbook $(ANSIBLE_VERBOSE) -i \
163-
$(KDEVOPS_HOSTFILE) $(KDEVOPS_PLAYBOOKS_DIR)/bootlinux.yml \
164-
--extra-vars="$(BOOTLINUX_ARGS)" $(LIMIT_HOSTS) --tags uname,vars
162+
$(Q)ansible all -i hosts -b -m command -a "uname -r" -o \
163+
| awk -F '|' '{gsub(/^ +| +$$/, "", $$2); printf "%-30s %s\n", $$1, $$4}' \
164+
| sed -e 's|(stdout)||'
165165

166166
ifeq (y,$(CONFIG_KDEVOPS_WORKFLOW_ENABLE_CXL))
167167
PHONY += linux-cxl

0 commit comments

Comments
 (0)