Help with setting ephemeral volume on EC2

35 views
Skip to first unread message

Tzach Livyatan

unread,
Aug 3, 2015, 2:37:42 AM8/3/15
to Ansible Project
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




Tzach Livyatan

unread,
Aug 3, 2015, 2:38:34 AM8/3/15
to Ansible Project
I'm using ansible 1.9.1

Roy

unread,
Feb 11, 2016, 2:21:05 PM2/11/16
to Ansible Project
What type of instance you are using, because not all instances comes with ephemeral
Reply all
Reply to author
Forward
0 new messages