spot instance block duration not working in ansible

Hi

unable to create aws spot instance with new feature spot block duration we tried to use wait: true but its not working any help please find below yml

  • hosts: localhost
    connection: local
    gather_facts: false

tasks:

  • name: launch spot instance
    ec2:
    spot_price: 0.052
    region: us-east-1
    keypair: test
    group_id: sg-5789654
    instance_type: c3.large
    instance_tags:
    Name: common
    Env: Test
    Owner: mi
    Role: don
    Stack: tem
    Client: test
    count: 1
    image: ami-216a898547
    wait: true
    wait_timeout: 60
    vpc_subnet_id: subnet-64cf8908
    assign_public_ip: no
    register: newinstance

  • name: allocate and associate a new elastic IP inside a VPC
    ec2_eip:
    region: us-east-1
    in_vpc: yes
    instance_id: “{{ newinstance.instance_ids[0] }}”
    register: instance_eip

  • debug: var=instance_eip.public_ip

Thanks
Nilesh Devare