mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
15 lines
400 B
YAML
15 lines
400 B
YAML
---
|
|
- hosts: all
|
|
gather_facts: no
|
|
|
|
tasks:
|
|
- name: ZFSaware Root FS usage
|
|
shell: zpool list rpool |grep -v ALLOC |awk '{print $3}'
|
|
register: dfrootz
|
|
- name: nonzfs rootfs usage
|
|
shell: df -h / |grep -v "Use" |awk '{print $5}'
|
|
register: dfrootnz
|
|
|
|
- debug:
|
|
msg: "System {{ inventory_hostname }}'s root FS utilization is {{ dfrootz.stdout }} {{ dfrootnz.stdout }}"
|