ERROR: glance_image is not a legal parameter in an Ansible Playbook

Hello All,

I am trying to use the glance_image plugin and keep on getting:

ERROR: glance_image is not a legal parameter in an Ansible Playbook

I am able to see glance_image under /usr/share/ansible/cloud/. I am using ansible 1.5.4

This is my yml file

  • glance_image: login_username=glance
    login_password=GLANCE_DBPASS
    login_tenant_name=service
    name=vivid
    container_format=bare
    disk_format=qcow2
    state=present
    file=/home/hadmin/Downloads/vivid-server-cloudimg-amd64-disk1.img

Am i missing some paremeter here,Kindly provide me if any doucment available on this.

Thanks in advance!!

Regards
Vijay