January 2018
Intermediate to advanced
398 pages
7h 54m
English
Launching an instance using Ansible is a convenient, platform agnostic method. While we have to specify how to do this for OpenStack, as a particular task, an Ansible playbook could be extended to allow a user to use the same Ansible command to launch an instance on any cloud. This recipe is a very basic introduction to the use of Ansible with OpenStack.
Ensure that you are logged on to a correctly configured OpenStack client and can access the OpenStack environment that has Ansible installed.
Ansible executes tasks in what is known as a playbook. In this example, we will create a simple task that launches a specific instance called cookbook1:
Read now
Unlock full access