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):
- name: "restart crond service"
- service:
name: crond
state: restarted
Best regards
--
Branko Majic
XMPP:
bra...@majic.rs
Please use only Free formats when sending attachments to me.
Бранко Мајић
XMPP:
bra...@majic.rs
Молим вас да додатке шаљете искључиво у слободним форматима.