homelab/ansible/stress.yml

12 lines
343 B
YAML
Raw Normal View History

2024-10-25 21:08:34 +00:00
---
- name: Stress test homelab (See max power usage and temperature)
strategy: free
gather_facts: true
hosts:
- proxmox
- cronus
tasks:
- name: Stress for 2 minutes
ansible.builtin.command: "stress -c {{ ansible_facts['processor_cores'] * ansible_facts['processor_threads_per_core'] }} --timeout 180"
poll: 0