Guys,
Currently, I have a task that add a bunch of images on Glance, but using shell/command module, like this:
---
- name: Adding a few Operating System images into Glance
environment: "{{admin_openrc_env}}"
command: "{{item}}"
with_items:
when: openstack_installation == 'yes'
---
This is so great, because I don't need to download all those images during OpenStack provisioning, and Glance downloads each of those only by demand!
However, I'm now exploring "os_image", and other Ansible OpenStack modules... Looks promising!
But, "os_image" does not have something similar with "--location"! Do you guys have any suggestion?
Does "filename" "os_image" option, supports URLs? Like "file:///", or "http://?
I would like to move to "os_image", because then, I'll be able to get rid of my ugly "when contidion", called "openstack_installation"... Otherwise, Ansible will duplicates the images entries over and over again... On the other hand, new "os_image" doesn't duplicate anything on subsequent runs, which is great! But I need the "--location" feature...
Thoughts?
Cheers!
Thiago