ANSIBLE.GLANCE_IMAGE(3)

NAME
glance_image - Add/Delete images from glance

DESCRIPTION

Add or Remove images from the glance repository.

OPTIONS

auth_url
    The keystone url for authentication (default: http://127.0.0.1:35357/v2.0/)

container_format
    The format of the container (default: bare)

copy_from
    A url from where the image can be downloaded, mutually exclusive with file parameter (default: None)

disk_format
    The format of the disk that is getting uploaded (default: qcow2)

file
    The path to the file which has to be uploaded, mutually exclusive with copy_from (default: None)

is_public
    Whether the image can be accessed publicly (default: yes)

login_password
    Password of login user(required) (default: yes)

login_tenant_name
    The tenant name of the login user(required) (default: yes)

login_username
    login username to authenticate to keystone(required) (default: admin)

min_disk
    The minimum disk space required to deploy this image (default: None)

min_ram
    The minimum ram required to deploy this image (default: None)

name
    Name that has to be given to the image(required) (default: None)

owner
    The owner of the image (default: None)

region_name
    Name of the region (default: None)

state
    Indicate desired state of the resource Choices: present,absent. (default: present)

timeout
    The time to wait for the image process to complete in seconds (default: 180)."
    # Upload an image from an HTTP URL
    - glance_image: login_username=admin
                    login_password=passme
                    login_tenant_name=admin
                    name=cirros
                    container_format=bare
                    disk_format=qcow2
                    state=present
                    copy_from=http:launchpad.net/cirros/trunk/0.3.0/+download/cirros-0.3.0-x86_64-disk.img

SEE ALSO
ansible(1), http://ansible.github.com/modules.html#glance-image