Skip to content

Commit

Permalink
attach volume
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Oct 17, 2024
1 parent 873cf1b commit 0a81496
Show file tree
Hide file tree
Showing 2 changed files with 11 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 @@ -32,6 +32,7 @@ aws_new_instance:
eni: eni-00262174ef1654ef8
elastic_ip: 34.235.77.11
ipv6: 2600:1f18:8ee:ae00:8e6a:db65:9812:8e10
data_volume: vol-0ac5c6795372104ab

## See discussion https://github.com/fedora-copr/logdetective/issues/77 and slack
instance_type: p3.16xlarge
Expand Down
10 changes: 10 additions & 0 deletions releng/training-machine/spawn-logdetective02.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@
- aws_new_instance.eni is not defined
- aws_new_instance.ipv6 is defined

- name: attach the data volume
amazon.aws.ec2_vol:
instance: "{{ instances_started.instances[0].instance_id }}"
id: "{{ aws_new_instance.data_volume }}"
device_name: sdc
when:
- aws_new_instance.data_volume is defined
tags:
- volume

- name: print ipv4
debug:
msg:
Expand Down

0 comments on commit 0a81496

Please sign in to comment.