diff --git a/releng/training-machine/group_vars/all.yml b/releng/training-machine/group_vars/all.yml index 7477d99..b295c1b 100644 --- a/releng/training-machine/group_vars/all.yml +++ b/releng/training-machine/group_vars/all.yml @@ -16,3 +16,4 @@ aws_new_instance: security_group: sg-0a454bd8f70a679ce root_volume_size: 60 elastic_ip: 52.18.47.238 + ipv6: 2a05:d018:117:3003:7f90:e534:a956:f7f4 diff --git a/releng/training-machine/spawn-logdetective02.yml b/releng/training-machine/spawn-logdetective02.yml index 3ec2687..ce695f3 100644 --- a/releng/training-machine/spawn-logdetective02.yml +++ b/releng/training-machine/spawn-logdetective02.yml @@ -39,6 +39,12 @@ region: "{{ aws_new_instance.region }}" state: present + - name: "add {{ aws_new_instance.ipv6 }} to the new machine" + ansible.builtin.command: > + aws ec2 --profile {{ aws_new_instance.profile }} assign-ipv6-addresses + --ipv6-addresses {{ aws_new_instance.ipv6 }} + --network-interface-id {{ instances_started.instances[0].network_interfaces[0].network_interface_id }} + - name: print ipv4 debug: msg: