fix: all组显示所有主机 + playbook warn模块改为debug
This commit is contained in:
@@ -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
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user