How delete one task wo is run

Hey,

I have this task :

  • name: “Execution one scirpt”
    script: ./my_script.sh
    delegate_to: lacalhost

I want a second taks who cancel all action of my first task of my script…

Can you help me please ! :slight_smile:

Thanks

Regards,

https://docs.ansible.com/ansible/latest/user_guide/playbooks_error_handling.html