I generally drop the database before hand and recreate it (as was suggested by a few of the regulars here a few weeks ago). Sure you'll lose all your data, but it's idempotent and will apply any potential changes to the schema.
On Sunday, February 10, 2013 11:35:24 PM UTC+1, Simon Rascovsky wrote:
Hi all,
What would be a the sensible ansible way of preventing a sql script from being run if the schema is already created? Or put another way, how to make a playbook that runs a sql script idempotent?
Thanks!
Simon