Newbie question: Using ansible for runbook automation type of tasks

I am looking for an application that can be used as a runbook automation tool from a monitoring platform (nagios). From nagios I have the ability to run scripts from the Nagios server. I need to build a simple script that ssh to a remote server, look for some log files, delete them if it exists, restart a process and bring back the results of the commands into a file on the Nagios server. I know I can implement this using Run book Automation tools like Blue Prism. I am very new to Ansible. Can Ansible be used to build something like this and called from another application? Before I spend too much time into learning Ansible, wanted to check if I should consider Ansible for this.

Thanks
Ravi

Yes, Ansible can do that.

Mike