Moin! On 14 Mar 2020, at 9:07, Dick Visser wrote: > This is indeed not supporting by the ec2_vpc_net module. > I am using an aws cli helper task, which needs to be conditional to > prevent adding the prefix when it's already there: > > - name: Ensure VPC is available > ec2_vpc_net: > name: my_vpc > cidr_block: 10.0.0.0/24 > register: realized_vpc > > # Workaround because ec2_vpc_net doesn't have IPv6 functionality, see > # https://github.com/ansible/ansible/issues/27800 for the list of open > IPv6 issues. > - name: Ensure VPC has IPv6 prefix > command: aws ec2 associate-vpc-cidr-block > --amazon-provided-ipv6-cidr-block --vpc-id "{{ realized_vpc.vpc.id }}" > when: realized_vpc.vpc.ipv6_cidr_block_association_set is not defined Thanks a lot that worked fine for me also. Now given the issue list I may run into other problems with getting IPv6 deployed, but I’ll try anyway.
So long -Ralf ——- Ralf Weber -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/B632D348-5FE0-42DA-BEEE-A0829AE3E93D%40fl1ger.de.
