working on AWS

This commit is contained in:
n0mad1k
2025-05-02 10:01:07 -04:00
parent e3fe2b0509
commit c7348a952a
4 changed files with 117 additions and 19 deletions
+5
View File
@@ -73,6 +73,11 @@
aws_c2_region: "{{ aws_region_choices | random }}"
when: aws_region_choices is defined and aws_region_choices|length > 0 and aws_c2_region is not defined
- name: Set AMI ID for the selected region
set_fact:
ami_id: "{{ ami_map[aws_redirector_region] }}"
when: ami_map is defined and aws_redirector_region in ami_map
- name: Launch EC2 instance for C2 server
amazon.aws.ec2_instance:
name: "{{ c2_name }}"