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

In this section, we will now create the playbooks and roles to add the OpenStack feature of provisioning Docker compute node(s) as a hypervisor to your cloud. When creating Ansible automation code for something of this nature, I typically like to create multiple tasks broken up into separate roles. This format allows you to reuse the roles created with other playbooks. We will end up with four playbooks and six roles to automate the steps outlined in the previous section. Each role will be broken up into its own area within this section of the chapter. At the end, we will recap the playbooks consuming those roles.

Install Docker

The first role that we will create will include the tasks needed to install Docker on the ...

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