fix: all组显示所有主机 + playbook warn模块改为debug

This commit is contained in:
Hermes Agent
2026-05-18 17:26:51 +08:00
parent d58e860059
commit ecb8afd732
4 changed files with 39 additions and 33 deletions
+2 -2
View File
@@ -48,6 +48,6 @@
when: cpu_usage | int >= crit_threshold
- name: 警告判断
warn:
msg: "{{ inventory_hostname }} CPU 使用率超过 {{ warn_threshold }}%: {{ cpu_usage }}%"
debug:
msg: "⚠️ WARNING: {{ inventory_hostname }} CPU 使用率超过 {{ warn_threshold }}%: {{ cpu_usage }}%"
when: cpu_usage | int >= warn_threshold and cpu_usage | int < crit_threshold