PLAY [This is to call the restart_cron role] ***********************************************************************************************************************
Your task is never executed, you can see that in the output (there is
no mention whatsoever of "restart crond service").
Additionally, the task as you have output it here would never run
because of syntax errors (even if you had it correctly included) -
because it's not valid yaml. It would need to look something similar
to (note the spaces and newlines):
You never get to the service task as you have an 'empty task' with
just the name ... and then you structure yaml format as it were k=v,
you probably want the following: