>
> I just ran into this error too.  It has to do with the "id=wordpress" in 
> your task - see: http://ansible.sivel.net/docs/ec2_module.html
>

id - identifier for this instance or set of instances, so that the module 
will be idempotent with respect to EC2 instances. This identifier is valid 
for at least 24 hours after the termination of the instance, and should not 
be reused for another call later on. For details, see the description of 
client token at 
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/Run_Instance_Idempotency.html.
 
I'm finding that the "id" is valid for a LOT more than 24 hours for me. 
 This is a pain since I'm destroying and recreating instances with the same 
name.

Instead of "id", just use something like the following to maintain the 
number of boxes you want/ID the boxes:
        instance_tags:
          Name: "{{ prefix }}_jumpbox"
        exact_count: 1
        count_tag:
          Name: "{{ prefix }}_jumpbox"

Best,

Jonathan

-- 
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/26785082-abbd-4091-83c7-9f9d8d9746dd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to