Long running DB init

Hi,
I am going my first Ansible steps (Doing cfengine for 10+ Years).

So far i am having no huge issues. I am playing with setting up
postgres databases etc. Now i was thinking of initializing them
with content which would take hours to days to import data.

How do others implement tasks like this? I have read about the async
polling but was rather thinking of deploying an import script
and just starting that.

Flo

We use async/polling for our “long” running tasks (1-4 hrs) which are mainly postgres or oracle database restores. Not sure about tasks that take days, you may want to look into the “fire and forget” mode by setting poll=0. Just make sure to set async high enough to allow tasks to run that long. Ansible seems to do a really good job of ensuring those long running tasks keep running.

  • David