generated from ansible-collections/collection_template
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
78ebb32
commit 0877f94
Showing
5 changed files
with
73 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
organization: Default | ||
# Github PAT | ||
scm_credential: "UserGHPAT" |
28 changes: 28 additions & 0 deletions
28
extensions/experiences/configure_ec2/playbooks/run_configure_ec2.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
- name: Create AWS EC2 instance with the necessary network configurations | ||
hosts: localhost | ||
gather_facts: false | ||
tasks: | ||
- name: Configure Network resources | ||
ansible.builtin.include_role: | ||
name: cloud.aws_ops.ec2_networking_resources | ||
vars: | ||
ec2_networking_resources_vpc_name: "{{ vpc_name }}" | ||
ec2_networking_resources_vpc_cidr_block: "{{ vpc_cidr }}" | ||
ec2_networking_resources_subnet_cidr_block: "{{ subnet }}" | ||
ec2_networking_resources_sg_internal_name: "{{ security_group_internal }}" | ||
ec2_networking_resources_sg_internal_description: "{{ security_group_internal_description }}" | ||
|
||
- name: Configure AWS EC2 instance | ||
ansible.builtin.include_role: | ||
name: cloud.aws_ops.ec2_instance_create | ||
vars: | ||
ec2_instance_create_aws_region: "{{ region }}" | ||
ec2_instance_create_instance_name: "{{ instance_name }}" | ||
ec2_instance_create_instance_type: "{{ instance_type }}" | ||
ec2_instance_create_ami_id: "{{ ami_id }}" | ||
ec2_instance_create_vpc_subnet_id: subnet-071443aa123456789 | ||
ec2_instance_create_tags: | ||
Component: my-test-instance | ||
Environment: Testing | ||
ec2_instance_create_wait_for_boot: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
--- | ||
# Labels | ||
# | ||
controller_labels: | ||
- name: cloud.aws_ops | ||
organization: "{{ organization }}" | ||
- name: confgiure_ec2_experience | ||
organization: "{{ organization }}" | ||
- name: run_configure_ec2 | ||
organization: "{{ organization }}" | ||
|
||
# Projects | ||
# | ||
controller_projects: | ||
- name: AWS Operations / Configure EC2 Experience Project | ||
organization: "{{ organization }}" | ||
scm_branch: main | ||
scm_clean: 'no' | ||
scm_delete_on_update: 'no' | ||
scm_type: git | ||
scm_update_on_launch: 'no' | ||
scm_credential: "{{ scm_credential }}" | ||
scm_url: https://github.com/GomathiselviS/cloud.aws_ops.git | ||
|
||
|
||
# Job Templates | ||
# | ||
controller_templates: | ||
- name: AWS Operations / Configure EC2 instance | ||
description: This job template creates an EC2 instance with the necessary network infrastructure | ||
project: AWS Operations / Configure EC2 Experience Project | ||
playbook: extensions/experiences/configure_ec2/playbooks/run_configure_ec2.yaml | ||
job_type: "run" | ||
organization: "{{ organization | default('Default') }}" | ||
labels: | ||
- cloud.aws_ops | ||
- configure_ec2_experience | ||
- run_configure_ec2 | ||
credentials: aws-instance | ||
survey_enabled: true | ||
survey_spec: "{{ lookup('file', experience.path.replace('setup.yml', '') + 'template_surveys/configure_ec2.yaml') | from_yaml }}" |
Empty file.