The template module does this by default (the diff if ansible is called with --diff), add a notify handler for the restart and you have all the steps.
> - during deployment we template the xml jinja template in a different location > - we compare it to the current xml config > - when there is a diff, we print it and stop JBoss, move the new > config in place and restart JBoss ---------- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CACVha7d-6abpuOt8PoG3n%2B1h1Bw7WkNibo_xs5tSbMpE9NFMKA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
