If a task is created and only related to the deal itself, I would like create a workflow to get automatically related with all the contacts related with the deal
This is not possible at this stage to automatically associate contacts to a deal task, I'd recommend upvoting this Idea in our Ideas Forum regarding this. You can also subscribe to the idea (Options > Subscribe) to get notified if the status changes.