O'Reilly logo

OpenStack Administration with Ansible by Walter Bentley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Coding the playbook and roles

The playbook and role that we will now create will allow you to take a snapshot of all instances within a single tenant at one time. This distinct task was chosen to try to keep the role simple and not to overcomplicate the tasks. You can also create a role to snapshot or backup all the instances in all the tenants with the removal of just one parameter. Pretty awesome right? Well, send your thank you cards to Ansible for that.

At the beginning of the chapter, we reviewed the process of how to take instance backups and snapshots. It was a very simple two-step process. For the purpose of automating this task, we have to add an additional step to the process. That step will be to get the tenant ID for the tenant we plan ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required