---
- hosts: all
  connection: local
  gather_facts: False
  tasks:
   - ec2:
       image: ami-b968bad6
       region: eu-central-1
       instance_type: t2.micro
       instance_tags:
         Name: AnsibleDemo

---
- hosts: all
  connection: local
  gather_facts: False
  tasks:
    - ec2:
        image: ami-b968bad6
        region: eu-central-1
        instance_type: t2.micro
        instance_tags:
          Name: AnsibleDemo
        count_tag:
          Name: AnsibleDemo
        exact_count: 1

Create instance only if it does not yet exist
Create instance only if it does not yet exist
