# question with aws ec2 exact\_count

**URL:** <https://forum.ansible.com/t/question-with-aws-ec2-exact-count/20453>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [February 4, 2016, 3:39pm UTC](https://forum.ansible.com/t/question-with-aws-ec2-exact-count/20453 "2016-02-04T15:39:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_Baydoun](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@Michael\_Baydoun](https://forum.ansible.com/u/Michael_Baydoun)\
**Post date:** [February 4, 2016, 3:39pm UTC](https://forum.ansible.com/t/question-with-aws-ec2-exact-count/20453/1 "2016-02-04T15:39:59Z")

</div>

Thought the task below would create 1 instance with the count\_tag “demo”, only if there wasn’t one running, but it’s creating a new instance every time.  
Am I using exact\_count incorrectly?

- name: spin up ec2 instance  
ec2:  
count\_tag: demo  
exact\_count: 1  
image: ami-60b6c60a  
region: us-east-1  
type: t2.nano  
wait: yes

Using ansible 2.0.0.2 and boto 2.39.0
