Q:

Ansible - ec2_eni reuse ENI

I have a pretty basic ansible playbook that creates an ENI:
---
- name: create ENIs
  hosts: localhost
  tasks:
     - name: create eni 1
       ec2_eni:
         subnet_id: subnet-xxxxxxx
         region: us-east-1
         description: my-eni
         state: present

What i am trying to do is when i rerun this playbook, it does not create the new ENI but verifies that the ENI that was created and exists.
I cannot pass Private IP address as I want to reuse it across multiple accounts we have.
Is it possible to do so?
This is the ENI Module I am using:
http://docs.ansible.com/ansible/ec2_eni_module.html

A:

Assuming ENI description is unique (very important assumption):
  tasks:
  - ec2_eni_facts:
      region: us-east-1
      filters:
        description: my-eni
    register: eni_facts

  - name: create eni 1 if not presemt
    ec2_eni:
      subnet_id: subnet-xxxxxxx
      region: us-east-1
      description: my-eni
      state: present
    when: not eni_facts.interfaces

