Running a playbook on a new rackspace instance

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

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.

Thanks, I should probably read the whole of that guide :slight_smile: