On Mon, 18 Jul 2022 at 20:18, Amit Das <
amit....@gmail.com> wrote:
>
> Dear All,
>
> I am relatively new to Ansible. Could someone please guide me on writing a playbook which runs hourly to monitor the disk space and generates an email alert if the threshold is breached?
Ansible is a configuration management tool. You should not waste
effort trying to shoehorn ansible into some home grown service
monitoring tool.
Instead, use a dedicated service monitoring tool for that job.
Picking the right one is outside the scope of this list, but there is
plenty of information out there, take a look at zabbix, nagios, etc.