Properly wait for apache to run before inserting into load balancer

In my post task I insert the web servers back into the pool.

What’s a good way to make sure Apache is running prior to running the post task section?

post_tasks:

  • name: enable in the lb
    netscaler: nsc_host={{nsc_host}} user={{nsc_user}} password={{nsc_pass}} name={{name}} type={{type}} action=enable validate_certs=no
    delegate_to: 127.0.0.1

​perhaps doing the uri module in a loop, until some standard healthcheck
page is returned​

I’m an idiot, I didn’t realize I could have multiple tasks in a post_task. :smiley:

I added a new task to check for the webs and it works.