suggest me the steps for clearing the hadoop YARN Cache using Ansible

Hi

Suggestion is to use the service module for step 1 and 4. Find the documentation here: http://docs.ansible.com/ansible/latest/service_module.html Other steps just the find module or even command module.

Dick