Skip to content

Commit

Permalink
assign ipv6
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Oct 17, 2024
1 parent b1917f4 commit bcaa6fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions releng/training-machine/group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions releng/training-machine/spawn-logdetective02.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bcaa6fc

Please sign in to comment.