Thanks Nicolas, Dan This is it. The group was created manually.
On Thursday, January 15, 2015 at 4:06:23 PM UTC+2, Dan Vaida wrote: > > As Nicolas mentioned, you will get an error when you are trying to create > the security group through Ansible and that security group already exists > and was created manually/by other tool. > If you already created the SG with Ansible and want to update it through > Ansible, the task is going to report "changed". If you simply leave it as > is, at the next run, it will report "ok" => idempotency > > Cheers. > > On 15 January 2015 at 13:54, Nicolas G <[email protected] <javascript:>> > wrote: > >> hi, >> >> I think when I was trying the ec2_group module for some reason it will >> only fail if the security group already exists but was not created by the >> module, if you create a new security group using the ec2_group module it >> wont fail when you run the same playbook again. >> >> On Wednesday, January 14, 2015 at 10:22:35 AM UTC+2, Tzach Livyatan wrote: >>> >>> newbie Ansible ec2 question: >>> I'm successfully using ec2_group_module [1] to create EC2 security >>> group. >>> However, the operation fail if the group is already there >>> What is the idiomatic to conditionally skip it if the group is already >>> there? >>> >>> Thanks >>> >>> >>> [1] http://docs.ansible.com/ec2_group_module.html >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Ansible Project" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/ansible-project/eHKIyOeGFK0/unsubscribe >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/ansible-project/c9b008e5-69cd-4a19-8db7-6c3395915bad%40googlegroups.com >> >> <https://groups.google.com/d/msgid/ansible-project/c9b008e5-69cd-4a19-8db7-6c3395915bad%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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/7f838dce-a093-4196-bc3f-bc6489c5db1c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
