I want a task to fail if it takes longer than 2 hours to run

I have a task that I need to run a command module for, but I need it to fail after a specific amount of time. I’m going to be using blocks so I can then move to recovery when it fails.
what’s the best way of assigning a timeout to a task?

Many thanks in advance

John

With async
https://docs.ansible.com/ansible/latest/user_guide/playbooks_async.html