question with aws ec2 exact_count

5 views
Skip to first unread message

Michael Baydoun

unread,
Feb 4, 2016, 10:39:59 AM2/4/16
to Ansible Project
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
Reply all
Reply to author
Forward
0 new messages