module ec2_lc: EC2 Launch Configurations can't add ephemeral volumes?

Hello all!

I’m new to Ansible, but I’ve already gotten so much done with it! I ran into a problem that I can’t seem to fix, so I’m posting here to see if this is a bug.

Given the simple play:

`

  • hosts: localhost
    connection: local
    gather_facts: no
    tasks:
  • name: Create Launch Configuration
    ec2_lc:
    name: Ansible Launch Configuration
    image_id: ami-1d8c9574
    instance_type: m3.medium
    security_groups: default
    region: us-east-1
    state: present
    volumes:
  • device_name: /dev/sda1
    device_type: standard
    volume_size: 8
    delete_on_termination: True
  • device_name: “/dev/sdb”
    ephemeral: “ephemeral0”

`

…I would expect to see an EBS store called /dev/sda1 and an ephemeral store called /dev/sdb on the Launch Configuration. Instead, I see only the EBS store:

Didn’t want to file an issue in case I was overlooking something obvious, please help!

Perhaps, worth filing a ticket.

The docs on ephemeral don’t really show usage in ec2 or ec2_lc, so I think we’d want to improve it to show how it was done.