Running a playbook on a new rackspace instance

20 views
Skip to first unread message

Graham Hay

unread,
Sep 26, 2014, 3:25:40 AM9/26/14
to ansible...@googlegroups.com, Matt Martz, Dan Rough
Hi,

This is possibly more of a rackspace question than an ansible one, but hey-ho. When we create a new instance using the rax module, we then have a post-creation playbook containing steps that need to be run on all servers. The creation playbook waits for the instances to have finished building, but even so, if we run the post creation playbook straight away it will sometimes fail due to the rackspace post install scripts using apt to install the monitoring software.

At the moment, I just wait until the instances all have the three green dots before running the next step, but obviously this isn't ideal. Is there any way to tell that it's safe to proceed?

Thanks,

Graham

Matt Martz

unread,
Sep 26, 2014, 8:16:02 AM9/26/14
to Graham Hay, ansible...@googlegroups.com, Dan Rough
Graham,

I'll assume that if you have processes running on the system to perform steps such as installing the cloud monitoring agent, that you probably have a managed service level offering.

In which case, you should probably wait until that is complete.  There are docs located at <http://docs.ansible.com/guide_rax.html#rackconnect-and-managed-cloud> that will show you how to wait for the automation to complete.
--
Matt Martz
@sivel
sivel.net

Graham Hay

unread,
Sep 26, 2014, 8:24:48 AM9/26/14
to Matt Martz, ansible...@googlegroups.com, Dan Rough
Thanks, I should probably read the whole of that guide :)
Reply all
Reply to author
Forward
0 new messages