Properly wait for apache to run before inserting into load balancer

30 views
Skip to first unread message

Samnang Sen

unread,
Mar 4, 2015, 3:11:17 PM3/4/15
to ansible...@googlegroups.com
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

Serge van Ginderachter

unread,
Mar 4, 2015, 3:19:21 PM3/4/15
to ansible...@googlegroups.com

On 4 March 2015 at 21:11, Samnang Sen <samna...@gmail.com> wrote:
What's a good way to make sure Apache is running prior to running the post task section? 


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

Samnang Sen

unread,
Mar 4, 2015, 3:29:56 PM3/4/15
to ansible...@googlegroups.com
I'm an idiot, I didn't realize I could have multiple tasks in a post_task. :-D

I added a new task to check for the webs and it works.
Reply all
Reply to author
Forward
0 new messages