Preventing a deploy of tomcat from running again.

Hiya,

I’ve had a google for this but I can’t find anything which answer my question…

I have a playbook which deploys tomcat via a zip file, this is the standard tomcat file from their website.

it then takes a template of server.xml and places it in the /opt/tomcat/conf directory.

This action changes the contents so the next time my playbook runs it re-runs the play which I don’t want, is there an easy way around this?

This is the relevant section:-

unarchive module supports creates parameter:

creates | : | |

| a filename, when it already exists, this step will not be run. (added in Ansible 1.6) |

  • | - | - | - | - |

Edgars

otrdiena, 2015. gada 14. aprīlis 13:16:03 UTC+2, Chris Brooks rakstīja: