When using things like script/shell/command, Ansible has no way to know what happened since this is arbitrary code you supply. That said, script has some helper options like 'creates/removes' that let you tell ansible ' my code creates this or removes this' and the module will check these conditions and use that as a reflection of if the script needs to run again or not with the supposition that it already ran previously in successful fashion.
-- ---------- Brian Coca -- 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/CACVha7ffeeSK_ziuUUkDHH1eq%3DJjJ-Dyw1Jega1RTRD3--wR3A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.