Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
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 PM
3/4/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
3/4/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 PM
3/4/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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