mirror of
https://github.com/trailofbits/algo.git
synced 2025-07-24 14:33:02 +02:00
23 lines
540 B
YAML
23 lines
540 B
YAML
---
|
|
- name: Get the anchor IP
|
|
uri:
|
|
url: http://169.254.169.254/metadata/v1/interfaces/public/0/anchor_ipv4/address
|
|
return_content: true
|
|
register: anchor_ipv4
|
|
until: anchor_ipv4 is succeeded
|
|
retries: 30
|
|
delay: 10
|
|
|
|
- name: Set SNAT IP as a fact
|
|
set_fact:
|
|
snat_aipv4: "{{ anchor_ipv4.content }}"
|
|
|
|
- name: IPv6 egress alias configured
|
|
template:
|
|
src: 99-algo-ipv6-egress.yaml.j2
|
|
dest: /etc/netplan/99-algo-ipv6-egress.yaml
|
|
when:
|
|
- ipv6_support
|
|
- ipv6_subnet_size|int > 1
|
|
notify:
|
|
- netplan apply
|