Adding an image
We need to update our OpenStack setup periodically with the latest releases of our operating systems. This is a good practice to get various bug fixes and security patches. Most of the popular Linux projects, such as CentOS, Fedora, Debian, and Ubuntu, release qcow2
images or other compatible formats to support private clouds such as OpenStack. For our convenience, OpenStack documents some of the major projects on their website (https://docs.openstack.org/image-guide/obtain-images.html).
How to do it…
As an example, we will work with the Fedora Project's cloud image. To do so, we will download the qcow2
image from the Fedora Project's download page, at https://alt.fedoraproject.org/cloud/:
- name: adding Fedora 27 as an image os_image: name: fedora-cloud-27 container_format: bare disk_format: qcow2 id: "{{ ansible_date_time.epoch | to_uuid }}" filename: /opt/Fedora-Cloud-Base-27-1.6.x86_64.qcow2 state: present
How it works…
The os_image
module will take...