Skip to content

Instantly share code, notes, and snippets.

@IPvSean
Created April 27, 2020 15:17
Show Gist options
  • Save IPvSean/62c16594e565df65707c63c96b537c05 to your computer and use it in GitHub Desktop.
Save IPvSean/62c16594e565df65707c63c96b537c05 to your computer and use it in GitHub Desktop.
ok: [804d-student2-ansible] =>
msg: |-
{
"admin_password": "ansible1234",
"ami_launch_index": 0,
"ansible_check_mode": false,
"ansible_diff_mode": false,
"ansible_facts": {},
"ansible_forks": 5,
"ansible_host": "3.226.22.126",
"ansible_inventory_sources": [
"/Users/sean/Desktop/test/dynamic_inventory/aws_ec2.yml"
],
"ansible_playbook_python": "/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python",
"ansible_port": "22",
"ansible_run_tags": [
"all"
],
"ansible_skip_tags": [],
"ansible_ssh_private_key_file": "/Users/sean/Desktop/test/dynamic_inventory/804d/804d-private.pem",
"ansible_user": "admin",
"ansible_verbosity": 0,
"ansible_version": {
"full": "2.9.7",
"major": 2,
"minor": 9,
"revision": 7,
"string": "2.9.7"
},
"architecture": "x86_64",
"block_device_mappings": [
{
"device_name": "/dev/xvda",
"ebs": {
"attach_time": "2020-04-21T15:00:39+00:00",
"delete_on_termination": true,
"status": "attached",
"volume_id": "vol-0cdcde6e08ad97089"
}
}
],
"capacity_reservation_specification": {
"capacity_reservation_preference": "open"
},
"client_token": "",
"cpu_options": {
"core_count": 1,
"threads_per_core": 2
},
"ebs_optimized": false,
"ec2_name_prefix": "804d",
"ec2_region": "us-east-1",
"ena_support": true,
"group_names": [
"aws_ec2",
"student2"
],
"groups": {
"all": [
"804d-student1-windows_ws",
"804d-student1-snort",
"804d-student1-qradar",
"804d-student1-checkpoint_mgmt",
"804d-student2-windows_ws",
"804d-student2-checkpoint_mgmt",
"804d-student3-checkpoint_gw",
"804d-student2-snort",
"804d-student2-qradar",
"804d-student1-ansible",
"804d-student2-ansible",
"804d-student3-snort",
"804d-student3-ansible",
"804d-student3-checkpoint_mgmt",
"804d-student1-checkpoint_gw",
"804d-student2-checkpoint_gw",
"804d-student1-attacker",
"804d-student3-qradar",
"804d-student2-attacker",
"804d-student3-attacker",
"804d-student3-windows_ws"
],
"aws_ec2": [
"804d-student1-windows_ws",
"804d-student1-snort",
"804d-student1-qradar",
"804d-student1-checkpoint_mgmt",
"804d-student2-windows_ws",
"804d-student2-checkpoint_mgmt",
"804d-student3-checkpoint_gw",
"804d-student2-snort",
"804d-student2-qradar",
"804d-student1-ansible",
"804d-student2-ansible",
"804d-student3-snort",
"804d-student3-ansible",
"804d-student3-checkpoint_mgmt",
"804d-student1-checkpoint_gw",
"804d-student2-checkpoint_gw",
"804d-student1-attacker",
"804d-student3-qradar",
"804d-student2-attacker",
"804d-student3-attacker",
"804d-student3-windows_ws"
],
"control_nodes": [
"804d-student1-ansible",
"804d-student2-ansible",
"804d-student3-ansible"
],
"student1": [
"804d-student1-windows_ws",
"804d-student1-snort",
"804d-student1-qradar",
"804d-student1-checkpoint_mgmt",
"804d-student1-ansible",
"804d-student1-checkpoint_gw",
"804d-student1-attacker"
],
"student2": [
"804d-student2-windows_ws",
"804d-student2-checkpoint_mgmt",
"804d-student2-snort",
"804d-student2-qradar",
"804d-student2-ansible",
"804d-student2-checkpoint_gw",
"804d-student2-attacker"
],
"student3": [
"804d-student3-checkpoint_gw",
"804d-student3-snort",
"804d-student3-ansible",
"804d-student3-checkpoint_mgmt",
"804d-student3-qradar",
"804d-student3-attacker",
"804d-student3-windows_ws"
],
"ungrouped": []
},
"hibernation_options": {
"configured": false
},
"hypervisor": "xen",
"image_id": "ami-0a91737bb80005596",
"instance_id": "i-08e8294b1940293a8",
"instance_type": "c5.large",
"inventory_dir": "/Users/sean/Desktop/test/dynamic_inventory",
"inventory_file": "/Users/sean/Desktop/test/dynamic_inventory/aws_ec2.yml",
"inventory_hostname": "804d-student2-checkpoint_gw",
"inventory_hostname_short": "804d-student2-checkpoint_gw",
"key_name": "804d-key",
"launch_time": "2020-04-21T15:00:38+00:00",
"monitoring": {
"state": "disabled"
},
"network_interfaces": [
{
"association": {
"ip_owner_id": "324218975267",
"public_dns_name": "ec2-3-226-22-126.compute-1.amazonaws.com",
"public_ip": "3.226.22.126"
},
"attachment": {
"attach_time": "2020-04-21T15:00:38+00:00",
"attachment_id": "eni-attach-0827a7fddb13a40e9",
"delete_on_termination": false,
"device_index": 0,
"status": "attached"
},
"description": "",
"groups": [
{
"group_id": "sg-0c3aad785141f6b26",
"group_name": "804d-insecure_all"
}
],
"ipv6_addresses": [],
"mac_address": "0a:e9:82:ba:bc:07",
"network_interface_id": "eni-07344f2bfd67f269e",
"owner_id": "324218975267",
"private_dns_name": "ip-172-16-243-104.ec2.internal",
"private_ip_address": "172.16.243.104",
"private_ip_addresses": [
{
"association": {
"ip_owner_id": "324218975267",
"public_dns_name": "ec2-3-226-22-126.compute-1.amazonaws.com",
"public_ip": "3.226.22.126"
},
"primary": true,
"private_dns_name": "ip-172-16-243-104.ec2.internal",
"private_ip_address": "172.16.243.104"
}
],
"source_dest_check": true,
"status": "in-use",
"subnet_id": "subnet-0613feab2be96c0df",
"vpc_id": "vpc-0a6e011215f214279"
},
{
"attachment": {
"attach_time": "2020-04-21T15:00:38+00:00",
"attachment_id": "eni-attach-01af08754bdd844e3",
"delete_on_termination": false,
"device_index": 1,
"status": "attached"
},
"description": "",
"groups": [
{
"group_id": "sg-0073d3ba5e7d83643",
"group_name": "default"
}
],
"ipv6_addresses": [],
"mac_address": "0a:ac:8f:a4:06:fd",
"network_interface_id": "eni-0b7d242bd00777813",
"owner_id": "324218975267",
"private_dns_name": "ip-172-17-156-70.ec2.internal",
"private_ip_address": "172.17.156.70",
"private_ip_addresses": [
{
"primary": true,
"private_dns_name": "ip-172-17-156-70.ec2.internal",
"private_ip_address": "172.17.156.70"
}
],
"source_dest_check": false,
"status": "in-use",
"subnet_id": "subnet-0fc5b6f1a4e5b4dbe",
"vpc_id": "vpc-0a6e011215f214279"
}
],
"omit": "__omit_place_holder__4655f796a8ca26352a895eb1cfa70ee61c582a93",
"owner_id": "324218975267",
"placement": {
"availability_zone": "us-east-1a",
"group_name": "",
"region": "us-east-1",
"tenancy": "default"
},
"playbook_dir": "/Users/sean/Desktop/test/dynamic_inventory",
"private_dns_name": "ip-172-16-243-104.ec2.internal",
"private_ip_address": "172.16.243.104",
"product_codes": [
{
"product_code_id": "263gtcd87e2xefwbacsdwvorx",
"product_code_type": "marketplace"
}
],
"public_dns_name": "ec2-3-226-22-126.compute-1.amazonaws.com",
"public_ip_address": "3.226.22.126",
"requester_id": "",
"reservation_id": "r-07b07f13dcd482431",
"root_device_name": "/dev/xvda",
"root_device_type": "ebs",
"security_groups": [
{
"group_id": "sg-0c3aad785141f6b26",
"group_name": "804d-insecure_all"
}
],
"short_name": "checkpoint_gw",
"source_dest_check": true,
"ssh_port": 22,
"state": {
"code": 16,
"name": "running"
},
"state_transition_reason": "",
"student_total": 3,
"subnet_id": "subnet-0613feab2be96c0df",
"tags": {
"AWS_USERNAME": "GPTE",
"Email": "pseguel@redhat.com",
"Index": "1",
"Info": "AWS_USERNAME that provisioned this-> GPTE",
"Linklight": "This was provisioned through the linklight provisioner",
"Name": "804d-student2-checkpoint_gw",
"Owner": "pseguel-redhat.com",
"Student": "student2",
"Students": "3",
"Workshop": "804d",
"Workshop_checkpoint_gw": "804d-checkpoint",
"Workshop_type": "security",
"short_name": "checkpoint_gw",
"username": "admin"
},
"username": "student2",
"virtualization_type": "hvm",
"vpc_id": "vpc-0a6e011215f214279",
"workshop_type": "security"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment