also this is how I'm launching the instances:

- name: Launch Instance
      ec2:
        group_id: "{{ hostvars[inventory_hostname].group_id }}"
        instance_type: 't2.micro'
        image: "{{ hostvars[inventory_hostname].image }}"
        wait: true
        region: 'us-east-1'
        keypair: "{{ key_pair }}"
        vpc_subnet_id: "{{ priv_subnet }}"
        instance_tags: "{{ hostvars[inventory_hostname].tags }}"
        register: ec2



On Wednesday, May 18, 2016 at 3:59:48 PM UTC-5, Eric S wrote:
>
> when using ec2.results in a task i'm getting:
> [DEPRECATION WARNING]: Skipping task due to undefined Error, in the future 
> this will be a fatal error.: 'dict object' has no attribute
> 'results'.
>
> using ansible 2.0.2
>

-- 
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/4ae3959b-f2a5-4bc9-9289-fe0e40bf3359%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to