>
> I'm looking  for a way to always run a task at the end of script, even if 
>  tasks before that were failed. Is there any option such  as always_run 
> etc. 
>

Yes: 
https://docs.ansible.com/ansible/playbooks_checkmode.html#running-a-task-in-check-mode
 
. Probably doesn't do what you want.

You may want block: 
always: https://docs.ansible.com/ansible/playbooks_blocks.html

Cheers,
Paul

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f6f9bbe2-b9d0-4329-8e94-ab1459e91ffe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to