Move to Demo Creds and Inventory (#88)
This commit is contained in:
@@ -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:
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
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
|
|
||||||
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 +20,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 +30,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 +41,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 +100,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 +112,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:
|
||||||
|
|||||||
@@ -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
|
||||||
@@ -381,7 +392,7 @@ controller_workflows:
|
|||||||
- us-west-2
|
- us-west-2
|
||||||
- question_name: Owner
|
- question_name: Owner
|
||||||
type: text
|
type: text
|
||||||
variable: aws_owner_tag
|
variable: create_vm_aws_owner_tag
|
||||||
required: true
|
required: true
|
||||||
- question_name: Environment
|
- question_name: Environment
|
||||||
type: multiplechoice
|
type: multiplechoice
|
||||||
@@ -402,8 +413,6 @@ controller_workflows:
|
|||||||
simplified_workflow_nodes:
|
simplified_workflow_nodes:
|
||||||
- identifier: Create Keypair
|
- identifier: Create Keypair
|
||||||
unified_job_template: Cloud / AWS / Create Keypair
|
unified_job_template: Cloud / AWS / Create Keypair
|
||||||
extra_data:
|
|
||||||
aws_keypair_owner: !unsafe "{{ aws_owner_tag }}"
|
|
||||||
success_nodes:
|
success_nodes:
|
||||||
- VPC Report
|
- VPC Report
|
||||||
failure_nodes:
|
failure_nodes:
|
||||||
@@ -428,9 +437,8 @@ controller_workflows:
|
|||||||
- identifier: Deploy Windows Blueprint
|
- identifier: Deploy Windows Blueprint
|
||||||
unified_job_template: Cloud / AWS / Create VM
|
unified_job_template: Cloud / AWS / Create VM
|
||||||
extra_data:
|
extra_data:
|
||||||
vm_name: aws_win
|
create_vm_vm_name: aws_win
|
||||||
vm_blueprint: windows_full
|
vm_blueprint: windows_full
|
||||||
vm_owner: !unsafe "{{ aws_owner_tag }}"
|
|
||||||
success_nodes:
|
success_nodes:
|
||||||
- Update Inventory
|
- Update Inventory
|
||||||
failure_nodes:
|
failure_nodes:
|
||||||
@@ -438,9 +446,8 @@ controller_workflows:
|
|||||||
- identifier: Deploy RHEL8 Blueprint
|
- identifier: Deploy RHEL8 Blueprint
|
||||||
unified_job_template: Cloud / AWS / Create VM
|
unified_job_template: Cloud / AWS / Create VM
|
||||||
extra_data:
|
extra_data:
|
||||||
vm_name: aws_rhel8
|
create_vm_vm_name: aws_rhel8
|
||||||
vm_blueprint: rhel8
|
vm_blueprint: rhel8
|
||||||
vm_owner: !unsafe "{{ aws_owner_tag }}"
|
|
||||||
success_nodes:
|
success_nodes:
|
||||||
- Update Inventory
|
- Update Inventory
|
||||||
failure_nodes:
|
failure_nodes:
|
||||||
@@ -448,9 +455,8 @@ controller_workflows:
|
|||||||
- identifier: Deploy RHEL9 Blueprint
|
- identifier: Deploy RHEL9 Blueprint
|
||||||
unified_job_template: Cloud / AWS / Create VM
|
unified_job_template: Cloud / AWS / Create VM
|
||||||
extra_data:
|
extra_data:
|
||||||
vm_name: aws_rhel9
|
create_vm_vm_name: aws_rhel9
|
||||||
vm_blueprint: rhel9
|
vm_blueprint: rhel9
|
||||||
vm_owner: !unsafe "{{ aws_owner_tag }}"
|
|
||||||
success_nodes:
|
success_nodes:
|
||||||
- Update Inventory
|
- Update Inventory
|
||||||
failure_nodes:
|
failure_nodes:
|
||||||
|
|||||||
@@ -224,14 +224,14 @@ controller_templates:
|
|||||||
|
|
||||||
- name: "WINDOWS / AD / Join Domain"
|
- name: "WINDOWS / AD / Join Domain"
|
||||||
job_type: run
|
job_type: run
|
||||||
inventory: "Workshop Inventory"
|
inventory: "Demo Inventory"
|
||||||
project: "Ansible official demo project"
|
project: "Ansible official demo project"
|
||||||
playbook: "windows/join_ad_domain.yml"
|
playbook: "windows/join_ad_domain.yml"
|
||||||
notification_templates_started: Telemetry
|
notification_templates_started: Telemetry
|
||||||
notification_templates_success: Telemetry
|
notification_templates_success: Telemetry
|
||||||
notification_templates_error: Telemetry
|
notification_templates_error: Telemetry
|
||||||
credentials:
|
credentials:
|
||||||
- "Workshop Credential"
|
- "Demo Credential"
|
||||||
survey_enabled: true
|
survey_enabled: true
|
||||||
survey:
|
survey:
|
||||||
name: ''
|
name: ''
|
||||||
|
|||||||
Reference in New Issue
Block a user