I'm struggling with adding ephemeral volume to EC2 instance on creation
Base on examples, I use the following task, but its look like its ignored 
with out any error message.
What am I'm doing wrong?

Thanks

    - name: Launch instances
      local_action:
        module: ec2
        region: "{{region}}"
        keypair: "{{key_name}}"
        group: "{{security_group}}"
        instance_type: "{{instance_type}}"
        image: "{{image}}"
        count: "{{cluster_nodes}}"
        volumes:
          - device_name: /dev/xvdb
            ephemeral: ephemeral0
          - device_name: /dev/xvdc
            ephemeral: ephemeral1
        wait: yes
      register: ec2_cluster




-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/d2820ed0-e2ad-4a13-82bb-a8d93632b1cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to