I have the following task in an Ansible playbook, using Ansible 2.0:
- name: Push base image to glance
os_image:
auth:
auth_url: *
username: admin
password: *
project_name: admin
name: centos-6
container_format: bare
disk_format: qcow2
state: present
filename: centos-6.qcow2
is_public: yes
The image is successfully pushed to Glance, however it is not made public. I have to manually edit the image in Horizon, or use glance cli to make it public.
I have raised a bug in ansible-modules-core in Github : https://github.com/ansible/ansible-modules-core/issues/2100
Any help will be greatly appreciated.
Thanks