Piranha Documentation

DNS - Listing Domains - Ansible

Aim

Further details for the output from Ansible.

Ansible

$ cd ansible/

$ ansible-playbook playbook.yml 
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all'
[WARNING]: Collection community.aws does not support Ansible version 2.10.8
[WARNING]: Collection amazon.aws does not support Ansible version 2.10.8

PLAY [Compute - List Instances] *******************************************************************************************************************************************************************************************

TASK [Gathering Facts] ****************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [List all instances] *************************************************************************************************************************************************************************************************
ok: [localhost]

TASK [Display Instances Variable] *****************************************************************************************************************************************************************************************
ok: [localhost] => {
    "compute_instances": {
        "changed": false,
        "failed": false,
        "instances": [
            {
                "ami_launch_index": 0,
                "architecture": "x86_64",
                "block_device_mappings": [
                    {
                        "device_name": "/dev/sda",
                        "ebs": {
                            "attach_time": "2023-11-04T01:07:53+00:00",
                            "delete_on_termination": true,
                            "status": "attached",
                            "volume_id": ""
                        }
                    }
                ],
                "client_token": "",
                "cpu_options": {
                    "core_count": 1,
                    "threads_per_core": 1
                },
                "ebs_optimized": false,
                "hypervisor": "qemu",
                "iam_instance_profile": {
                    "arn": "arn:piranha:iam::17294516:instance-profile/AdminRole",
                    "id": "PR17294516"
                },
                "image_id": "b41826f84c65",
                "instance_id": "17294516",
                "instance_type": "nano",
                "key_name": "",
                "launch_time": "2023-11-04T01:07:53+00:00",
                "monitoring": {
                    "state": "disabled"
                },
                "network_interfaces": [],
                "placement": {
                    "availability_zone": "eu-west-2",
                    "group_name": "",
                    "tenancy": "default"
                },
                "private_dns_name": "",
                "private_ip_address": "",
                "product_codes": [],
                "public_dns_name": "",
                "public_ip_address": "",
                "root_device_name": "/dev/sda",
                "root_device_type": "ebs",
                "security_groups": [
                    {
                        "group_id": "",
                        "group_name": ""
                    }
                ],
                "source_dest_check": true,
                "state": {
                    "code": 16,
                    "name": "running"
                },
                "state_transition_reason": "",
                "subnet_id": "",
                "tags": {
                    "Name": "scripbox"
                },
                "virtualization_type": "RP1",
                "vpc_id": "internet1"
            },
            {
                "ami_launch_index": 0,
                "architecture": "x86_64",
                "block_device_mappings": [
                    {
                        "device_name": "/dev/sda",
                        "ebs": {
                            "attach_time": "2023-12-03T22:29:44+00:00",
                            "delete_on_termination": true,
                            "status": "attached",
                            "volume_id": ""
                        }
                    }
                ],
                "client_token": "",
                "cpu_options": {
                    "core_count": 1,
                    "threads_per_core": 1
                },
                "ebs_optimized": false,
                "hypervisor": "qemu",
                "iam_instance_profile": {
                    "arn": "arn:piranha:iam::17254945:instance-profile/AdminRole",
                    "id": "PR17254945"
                },
                "image_id": "a78f168d3a3d",
                "instance_id": "17254945",
                "instance_type": "t2.small",
                "key_name": "",
                "launch_time": "2023-12-03T22:29:44+00:00",
                "monitoring": {
                    "state": "disabled"
                },
                "network_interfaces": [],
                "placement": {
                    "availability_zone": "eu-west-2",
                    "group_name": "",
                    "tenancy": "default"
                },
                "private_dns_name": "",
                "private_ip_address": "",
                "product_codes": [],
                "public_dns_name": "",
                "public_ip_address": "",
                "root_device_name": "/dev/sda",
                "root_device_type": "ebs",
                "security_groups": [
                    {
                        "group_id": "",
                        "group_name": ""
                    }
                ],
                "source_dest_check": true,
                "state": {
                    "code": 16,
                    "name": "running"
                },
                "state_transition_reason": "",
                "subnet_id": "",
                "tags": {
                    "Name": "test-a-box"
                },
                "virtualization_type": "RP1",
                "vpc_id": "vpc-4ddf2c0558"
            },
            {
                "ami_launch_index": 0,
                "architecture": "x86_64",
                "block_device_mappings": [
                    {
                        "device_name": "/dev/sda",
                        "ebs": {
                            "attach_time": "2023-10-22T14:51:54+00:00",
                            "delete_on_termination": true,
                            "status": "attached",
                            "volume_id": ""
                        }
                    }
                ],
                "client_token": "",
                "cpu_options": {
                    "core_count": 1,
                    "threads_per_core": 1
                },
                "ebs_optimized": false,
                "hypervisor": "qemu",
                "iam_instance_profile": {
                    "arn": "arn:piranha:iam::98095291:instance-profile/AdminRole",
                    "id": "PR98095291"
                },
                "image_id": "a78f168d3a3d",
                "instance_id": "98095291",
                "instance_type": "t3a.small",
                "key_name": "",
                "launch_time": "2023-10-22T14:51:54+00:00",
                "monitoring": {
                    "state": "disabled"
                },
                "network_interfaces": [],
                "placement": {
                    "availability_zone": "eu-west-2",
                    "group_name": "",
                    "tenancy": "default"
                },
                "private_dns_name": "",
                "private_ip_address": "",
                "product_codes": [],
                "public_dns_name": "",
                "public_ip_address": "",
                "root_device_name": "/dev/sda",
                "root_device_type": "ebs",
                "security_groups": [
                    {
                        "group_id": "",
                        "group_name": ""
                    }
                ],
                "source_dest_check": true,
                "state": {
                    "code": 16,
                    "name": "running"
                },
                "state_transition_reason": "",
                "subnet_id": "",
                "tags": {
                    "Name": "vm-in-default-vpc"
                },
                "virtualization_type": "RP1",
                "vpc_id": ""
            },
            {
                "ami_launch_index": 0,
                "architecture": "x86_64",
                "block_device_mappings": [
                    {
                        "device_name": "/dev/sda",
                        "ebs": {
                            "attach_time": "2023-10-22T14:52:40+00:00",
                            "delete_on_termination": true,
                            "status": "attached",
                            "volume_id": ""
                        }
                    }
                ],
                "client_token": "",
                "cpu_options": {
                    "core_count": 1,
                    "threads_per_core": 1
                },
                "ebs_optimized": false,
                "hypervisor": "qemu",
                "iam_instance_profile": {
                    "arn": "arn:piranha:iam::27461204:instance-profile/AdminRole",
                    "id": "PR27461204"
                },
                "image_id": "a78f168d3a3d",
                "instance_id": "27461204",
                "instance_type": "t3a.small",
                "key_name": "",
                "launch_time": "2023-10-22T14:52:40+00:00",
                "monitoring": {
                    "state": "disabled"
                },
                "network_interfaces": [],
                "placement": {
                    "availability_zone": "eu-west-2",
                    "group_name": "",
                    "tenancy": "default"
                },
                "private_dns_name": "",
                "private_ip_address": "",
                "product_codes": [],
                "public_dns_name": "",
                "public_ip_address": "",
                "root_device_name": "/dev/sda",
                "root_device_type": "ebs",
                "security_groups": [
                    {
                        "group_id": "",
                        "group_name": ""
                    }
                ],
                "source_dest_check": true,
                "state": {
                    "code": 16,
                    "name": "running"
                },
                "state_transition_reason": "",
                "subnet_id": "",
                "tags": {
                    "Name": "vm-internet"
                },
                "virtualization_type": "RP1",
                "vpc_id": ""
            },
            {
                "ami_launch_index": 0,
                "architecture": "x86_64",
                "block_device_mappings": [
                    {
                        "device_name": "/dev/sda",
                        "ebs": {
                            "attach_time": "2023-10-24T02:06:03+00:00",
                            "delete_on_termination": true,
                            "status": "attached",
                            "volume_id": ""
                        }
                    }
                ],
                "client_token": "",
                "cpu_options": {
                    "core_count": 1,
                    "threads_per_core": 1
                },
                "ebs_optimized": false,
                "hypervisor": "qemu",
                "iam_instance_profile": {
                    "arn": "arn:piranha:iam::12925085:instance-profile/AdminRole",
                    "id": "PR12925085"
                },
                "image_id": "a78f168d3a3d",
                "instance_id": "12925085",
                "instance_type": "t2.medium",
                "key_name": "",
                "launch_time": "2023-10-24T02:06:03+00:00",
                "monitoring": {
                    "state": "disabled"
                },
                "network_interfaces": [],
                "placement": {
                    "availability_zone": "eu-west-2",
                    "group_name": "",
                    "tenancy": "default"
                },
                "private_dns_name": "",
                "private_ip_address": "",
                "product_codes": [],
                "public_dns_name": "",
                "public_ip_address": "",
                "root_device_name": "/dev/sda",
                "root_device_type": "ebs",
                "security_groups": [
                    {
                        "group_id": "",
                        "group_name": ""
                    }
                ],
                "source_dest_check": true,
                "state": {
                    "code": 16,
                    "name": "running"
                },
                "state_transition_reason": "",
                "subnet_id": "",
                "tags": {
                    "Name": "vpc-and-internet"
                },
                "virtualization_type": "RP1",
                "vpc_id": ""
            }
        ]
    }
}

PLAY RECAP ****************************************************************************************************************************************************************************************************************
localhost                  : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0