How it works...
In step 1, for creating a compute instance, we have specified a name that will be used to refer to the virtual machine at all times. We have also specified an image called cirros. Cirros (https://launchpad.net/cirros) is a Linux flavor that specializes in running on the cloud. We can choose any available image, such as CentOS or Fedora, provided they are available on our OpenStack setup. We can add images of operating systems that we want—we will look at how to do this later. We have also specified the key and the security group created in the previous tasks. We have set the wait parameter to yes. Because of this, Ansible will wait for the instance to be created. This is good for synchronous tasks. The flavor parameter, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access