fix var name

This commit is contained in:
willtome
2023-08-17 11:55:50 -04:00
parent ae379666c8
commit cbec29ca0e
3 changed files with 26 additions and 15 deletions

View File

@@ -10,7 +10,7 @@
ansible.builtin.assert: ansible.builtin.assert:
that: that:
- aws_key_name is defined - aws_key_name is defined
- aws_region is defined - create_vm_aws_region is defined
- aws_public_key is defined - aws_public_key is defined
- aws_keypair_owner is defined - aws_keypair_owner is defined
fail_msg: "Required variables not set" fail_msg: "Required variables not set"
@@ -18,7 +18,7 @@
- name: Create AWS keypair - name: Create AWS keypair
amazon.aws.ec2_key: amazon.aws.ec2_key:
name: "{{ aws_key_name }}" name: "{{ aws_key_name }}"
region: "{{ aws_region }}" region: "{{ create_vm_aws_region }}"
key_material: "{{ aws_public_key }}" key_material: "{{ aws_public_key }}"
state: present state: present
tags: tags:

View File

@@ -9,7 +9,7 @@
aws_tenancy: default aws_tenancy: default
aws_vpc_cidr_block: 10.0.0.0/16 aws_vpc_cidr_block: 10.0.0.0/16
aws_subnet_cidr: 10.0.1.0/24 aws_subnet_cidr: 10.0.1.0/24
aws_region: us-east-1 create_vm_aws_region: us-east-1
aws_sg_name: aws-test-sg aws_sg_name: aws-test-sg
aws_subnet_name: aws-test-subnet aws_subnet_name: aws-test-subnet
aws_rt_name: aws-test-rt aws_rt_name: aws-test-rt
@@ -21,7 +21,7 @@
name: "{{ aws_vpc_name }}" name: "{{ aws_vpc_name }}"
cidr_block: "{{ aws_vpc_cidr_block }}" cidr_block: "{{ aws_vpc_cidr_block }}"
tenancy: "{{ aws_tenancy }}" tenancy: "{{ aws_tenancy }}"
region: "{{ aws_region }}" region: "{{ create_vm_aws_region }}"
tags: tags:
owner: "{{ aws_owner_tag }}" owner: "{{ aws_owner_tag }}"
purpose: "{{ aws_purpose_tag }}" purpose: "{{ aws_purpose_tag }}"
@@ -31,7 +31,7 @@
amazon.aws.ec2_vpc_igw: amazon.aws.ec2_vpc_igw:
state: present state: present
vpc_id: "{{ aws_vpc.vpc.id }}" vpc_id: "{{ aws_vpc.vpc.id }}"
region: "{{ aws_region }}" region: "{{ create_vm_aws_region }}"
tags: tags:
Name: "{{ aws_vpc_name }}" Name: "{{ aws_vpc_name }}"
owner: "{{ aws_owner_tag }}" owner: "{{ aws_owner_tag }}"
@@ -42,7 +42,7 @@
amazon.aws.ec2_security_group: amazon.aws.ec2_security_group:
state: present state: present
name: "{{ aws_sg_name }}" name: "{{ aws_sg_name }}"
region: "{{ aws_region }}" region: "{{ create_vm_aws_region }}"
description: Inbound WinRM and RDP, http for demo servers and internal AD ports description: Inbound WinRM and RDP, http for demo servers and internal AD ports
rules: rules:
- proto: tcp - proto: tcp
@@ -101,7 +101,7 @@
state: present state: present
vpc_id: "{{ aws_vpc.vpc.id }}" vpc_id: "{{ aws_vpc.vpc.id }}"
cidr: "{{ aws_subnet_cidr }}" cidr: "{{ aws_subnet_cidr }}"
region: "{{ aws_region }}" region: "{{ create_vm_aws_region }}"
map_public: true map_public: true
tags: tags:
Name: "{{ aws_subnet_name }}" Name: "{{ aws_subnet_name }}"
@@ -113,7 +113,7 @@
amazon.aws.ec2_vpc_route_table: amazon.aws.ec2_vpc_route_table:
state: present state: present
vpc_id: "{{ aws_vpc.vpc.id }}" vpc_id: "{{ aws_vpc.vpc.id }}"
region: "{{ aws_region }}" region: "{{ create_vm_aws_region }}"
subnets: subnets:
- "{{ aws_subnet.subnet.id }}" - "{{ aws_subnet.subnet.id }}"
routes: routes:

View File

@@ -164,7 +164,7 @@ controller_templates:
spec: spec:
- question_name: AWS Region - question_name: AWS Region
type: multiplechoice type: multiplechoice
variable: aws_region variable: create_vm_aws_region
required: true required: true
choices: choices:
- us-east-1 - us-east-1
@@ -263,8 +263,6 @@ controller_templates:
notification_templates_success: Telemetry notification_templates_success: Telemetry
notification_templates_error: Telemetry notification_templates_error: Telemetry
survey_enabled: true survey_enabled: true
extra_vars:
aws_region: us-east-1
survey: survey:
name: '' name: ''
description: '' description: ''
@@ -286,8 +284,21 @@ controller_templates:
notification_templates_success: Telemetry notification_templates_success: Telemetry
notification_templates_error: Telemetry notification_templates_error: Telemetry
extra_vars: extra_vars:
aws_region: us-east-1
aws_report: vpc aws_report: vpc
survey_enabled: true
survey:
name: ''
description: ''
spec:
- question_name: AWS Region
type: multiplechoice
variable: create_vm_aws_region
required: true
choices:
- us-east-1
- us-east-2
- us-west-1
- us-west-2
- name: Cloud / AWS / Tags Report - name: Cloud / AWS / Tags Report
job_type: run job_type: run
@@ -309,7 +320,7 @@ controller_templates:
spec: spec:
- question_name: AWS Region - question_name: AWS Region
type: multiplechoice type: multiplechoice
variable: aws_region variable: create_vm_aws_region
required: true required: true
choices: choices:
- us-east-1 - us-east-1
@@ -335,7 +346,7 @@ controller_templates:
spec: spec:
- question_name: AWS Region - question_name: AWS Region
type: multiplechoice type: multiplechoice
variable: aws_region variable: create_vm_aws_region
required: true required: true
choices: choices:
- us-east-1 - us-east-1
@@ -372,7 +383,7 @@ controller_workflows:
spec: spec:
- question_name: AWS Region - question_name: AWS Region
type: multiplechoice type: multiplechoice
variable: aws_region variable: create_vm_aws_region
required: true required: true
choices: choices:
- us-east-1 - us-east-1