#!/usr/bin/env python3

events = [
    {
        "event": "executor_on_start",
        "uuid": "bc394921-22ea-4286-9c18-c9998f48feab",
        "counter": -1,
        "stdout": None,
        "start_line": 0,
        "end_line": 0,
        "event_data": {
            "crc_dispatcher_correlation_id": "2798760e-b1b5-4251-838b-37e66090f589"
        },
    },
    {
        "event": "verbose",
        "uuid": "6796791d-1e95-40c6-a21d-5944e44508fc",
        "counter": 1,
        "stdout": "[DEPRECATION WARNING]: ANSIBLE_COLLECTIONS_PATHS option, does not fit var ",
        "start_line": 0,
        "end_line": 1,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "created": "2024-11-05T20:05:36.993020",
    },
    {
        "event": "verbose",
        "uuid": "92774bde-4b8f-4518-be39-01af2eb5e320",
        "counter": 2,
        "stdout": "naming standard, use the singular form ANSIBLE_COLLECTIONS_PATH instead. This ",
        "start_line": 1,
        "end_line": 2,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "created": "2024-11-05T20:05:36.993095",
    },
    {
        "event": "verbose",
        "uuid": "06c4c8e2-89c7-4199-b16d-dd899e449f8f",
        "counter": 3,
        "stdout": "feature will be removed from ansible-core in version 2.19. Deprecation warnings",
        "start_line": 2,
        "end_line": 3,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "created": "2024-11-05T20:05:36.993116",
    },
    {
        "event": "verbose",
        "uuid": "ab1e6899-c913-4490-81f4-a955b88da438",
        "counter": 4,
        "stdout": " can be disabled by setting deprecation_warnings=False in ansible.cfg.",
        "start_line": 3,
        "end_line": 4,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "created": "2024-11-05T20:05:36.993133",
    },
    {
        "event": "verbose",
        "uuid": "dc1b269e-ed2b-428b-a0c2-dbc4efb80450",
        "counter": 5,
        "stdout": "[WARNING]: provided hosts list is empty, only localhost is available. Note that",
        "start_line": 4,
        "end_line": 5,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "created": "2024-11-05T20:05:37.390974",
    },
    {
        "event": "verbose",
        "uuid": "00c44029-3812-4831-b89f-8c6244780eff",
        "counter": 6,
        "stdout": "the implicit localhost does not match 'all'",
        "start_line": 5,
        "end_line": 6,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "created": "2024-11-05T20:05:37.391025",
    },
    {
        "uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
        "counter": 7,
        "stdout": "",
        "start_line": 6,
        "end_line": 6,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "playbook_on_start",
        "pid": 19546,
        "created": "2024-11-05T20:05:37.526083",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
        },
    },
    {
        "uuid": "52540076-c9f6-e944-273f-000000000001",
        "counter": 8,
        "stdout": "\r\nPLAY [Set owner and permissions on /etc/sshd/sshd_config to root:root 0600] ****",
        "start_line": 6,
        "end_line": 8,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "playbook_on_play_start",
        "pid": 19546,
        "created": "2024-11-05T20:05:37.527110",
        "parent_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "Set owner and permissions on /etc/sshd/sshd_config to root:root 0600",
            "play_uuid": "52540076-c9f6-e944-273f-000000000001",
            "play_pattern": "localhost",
            "name": "Set owner and permissions on /etc/sshd/sshd_config to root:root 0600",
            "pattern": "localhost",
            "uuid": "52540076-c9f6-e944-273f-000000000001",
        },
    },
    {
        "uuid": "52540076-c9f6-e944-273f-00000000000b",
        "counter": 9,
        "stdout": "\r\nTASK [Gathering Facts] *********************************************************",
        "start_line": 8,
        "end_line": 10,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "playbook_on_task_start",
        "pid": 19546,
        "created": "2024-11-05T20:05:37.535119",
        "parent_uuid": "52540076-c9f6-e944-273f-000000000001",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "Set owner and permissions on /etc/sshd/sshd_config to root:root 0600",
            "play_uuid": "52540076-c9f6-e944-273f-000000000001",
            "play_pattern": "localhost",
            "task": "Gathering Facts",
            "task_uuid": "52540076-c9f6-e944-273f-00000000000b",
            "task_action": "gather_facts",
            "task_args": "",
            "task_path": "",
            "name": "Gathering Facts",
            "is_conditional": False,
            "uuid": "52540076-c9f6-e944-273f-00000000000b",
        },
    },
    {
        "uuid": "f484e78f-4f1f-48e7-a50e-4c44b984ad1a",
        "counter": 10,
        "stdout": "",
        "start_line": 10,
        "end_line": 10,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "runner_on_start",
        "pid": 19546,
        "created": "2024-11-05T20:05:37.535796",
        "parent_uuid": "52540076-c9f6-e944-273f-00000000000b",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "Set owner and permissions on /etc/sshd/sshd_config to root:root 0600",
            "play_uuid": "52540076-c9f6-e944-273f-000000000001",
            "play_pattern": "localhost",
            "task": "Gathering Facts",
            "task_uuid": "52540076-c9f6-e944-273f-00000000000b",
            "task_action": "gather_facts",
            "task_args": "",
            "task_path": "",
            "host": "localhost",
            "uuid": "f484e78f-4f1f-48e7-a50e-4c44b984ad1a",
        },
    },
    {
        "uuid": "9289ea61-3dc6-4a32-aeb8-4aa2e5df43f6",
        "counter": 11,
        "stdout": "ok: [localhost]",
        "start_line": 10,
        "end_line": 11,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "runner_on_ok",
        "pid": 19546,
        "created": "2024-11-05T20:05:48.467204",
        "parent_uuid": "52540076-c9f6-e944-273f-00000000000b",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "Set owner and permissions on /etc/sshd/sshd_config to root:root 0600",
            "play_uuid": "52540076-c9f6-e944-273f-000000000001",
            "play_pattern": "localhost",
            "task": "Gathering Facts",
            "task_uuid": "52540076-c9f6-e944-273f-00000000000b",
            "task_action": "gather_facts",
            "task_args": "",
            "task_path": "",
            "host": "localhost",
            "remote_addr": "127.0.0.1",
            "res": {
                "warnings": [],
                "deprecations": [],
                "_ansible_verbose_override": True,
                "_ansible_no_log": False,
                "changed": False,
            },
            "start": "2024-11-05T20:05:37.535748",
            "end": "2024-11-05T20:05:48.467033",
            "duration": 10.931285,
            "event_loop": None,
            "uuid": "9289ea61-3dc6-4a32-aeb8-4aa2e5df43f6",
        },
    },
    {
        "uuid": "52540076-c9f6-e944-273f-000000000003",
        "counter": 12,
        "stdout": "\r\nTASK [Set the owner and permissions of ssh config file to root:root 0600] ******",
        "start_line": 11,
        "end_line": 13,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "playbook_on_task_start",
        "pid": 19546,
        "created": "2024-11-05T20:05:48.473587",
        "parent_uuid": "52540076-c9f6-e944-273f-000000000001",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "Set owner and permissions on /etc/sshd/sshd_config to root:root 0600",
            "play_uuid": "52540076-c9f6-e944-273f-000000000001",
            "play_pattern": "localhost",
            "task": "Set the owner and permissions of ssh config file to root:root 0600",
            "task_uuid": "52540076-c9f6-e944-273f-000000000003",
            "task_action": "file",
            "task_args": "",
            "task_path": "",
            "name": "Set the owner and permissions of ssh config file to root:root 0600",
            "is_conditional": False,
            "uuid": "52540076-c9f6-e944-273f-000000000003",
        },
    },
    {
        "uuid": "f9d32280-0b0c-4d70-bb7e-6bd1acf9a060",
        "counter": 13,
        "stdout": "",
        "start_line": 13,
        "end_line": 13,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "runner_on_start",
        "pid": 19546,
        "created": "2024-11-05T20:05:48.474149",
        "parent_uuid": "52540076-c9f6-e944-273f-000000000003",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "Set owner and permissions on /etc/sshd/sshd_config to root:root 0600",
            "play_uuid": "52540076-c9f6-e944-273f-000000000001",
            "play_pattern": "localhost",
            "task": "Set the owner and permissions of ssh config file to root:root 0600",
            "task_uuid": "52540076-c9f6-e944-273f-000000000003",
            "task_action": "file",
            "task_args": "",
            "task_path": "",
            "host": "localhost",
            "uuid": "f9d32280-0b0c-4d70-bb7e-6bd1acf9a060",
        },
    },
    {
        "uuid": "d7557858-a3fd-40ab-8fe8-b400d0a70e09",
        "counter": 14,
        "stdout": "ok: [localhost]",
        "start_line": 13,
        "end_line": 14,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "runner_on_ok",
        "pid": 19546,
        "created": "2024-11-05T20:05:48.682905",
        "parent_uuid": "52540076-c9f6-e944-273f-000000000003",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "Set owner and permissions on /etc/sshd/sshd_config to root:root 0600",
            "play_uuid": "52540076-c9f6-e944-273f-000000000001",
            "play_pattern": "localhost",
            "task": "Set the owner and permissions of ssh config file to root:root 0600",
            "task_uuid": "52540076-c9f6-e944-273f-000000000003",
            "task_action": "file",
            "task_args": "",
            "task_path": "",
            "host": "localhost",
            "remote_addr": "127.0.0.1",
            "res": {
                "path": "/etc/ssh/sshd_config",
                "changed": False,
                "diff": {
                    "before": {"path": "/etc/ssh/sshd_config"},
                    "after": {"path": "/etc/ssh/sshd_config"},
                },
                "uid": 0,
                "gid": 0,
                "owner": "root",
                "group": "root",
                "mode": "0600",
                "state": "file",
                "secontext": "system_u:object_r:etc_t:s0",
                "size": 4345,
                "invocation": {
                    "module_args": {
                        "path": "/etc/ssh/sshd_config",
                        "owner": "root",
                        "group": "root",
                        "mode": 384,
                        "recurse": False,
                        "force": False,
                        "follow": True,
                        "modification_time_format": "%Y%m%d%H%M.%S",
                        "access_time_format": "%Y%m%d%H%M.%S",
                        "unsafe_writes": False,
                        "state": "file",
                        "_original_basename": None,
                        "_diff_peek": None,
                        "src": None,
                        "modification_time": None,
                        "access_time": None,
                        "seuser": None,
                        "serole": None,
                        "selevel": None,
                        "setype": None,
                        "attributes": None,
                    }
                },
                "_ansible_no_log": False,
            },
            "start": "2024-11-05T20:05:48.474112",
            "end": "2024-11-05T20:05:48.682602",
            "duration": 0.20849,
            "event_loop": None,
            "uuid": "d7557858-a3fd-40ab-8fe8-b400d0a70e09",
        },
    },
    {
        "uuid": "52540076-c9f6-e944-273f-000000000004",
        "counter": 15,
        "stdout": "\r\nPLAY [run insights] ************************************************************",
        "start_line": 14,
        "end_line": 16,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "playbook_on_play_start",
        "pid": 19546,
        "created": "2024-11-05T20:05:48.691369",
        "parent_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "run insights",
            "play_uuid": "52540076-c9f6-e944-273f-000000000004",
            "play_pattern": "localhost",
            "name": "run insights",
            "pattern": "localhost",
            "uuid": "52540076-c9f6-e944-273f-000000000004",
        },
    },
    {
        "uuid": "52540076-c9f6-e944-273f-000000000006",
        "counter": 16,
        "stdout": "\r\nTASK [run insights] ************************************************************",
        "start_line": 16,
        "end_line": 18,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "playbook_on_task_start",
        "pid": 19546,
        "created": "2024-11-05T20:05:48.701972",
        "parent_uuid": "52540076-c9f6-e944-273f-000000000004",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "run insights",
            "play_uuid": "52540076-c9f6-e944-273f-000000000004",
            "play_pattern": "localhost",
            "task": "run insights",
            "task_uuid": "52540076-c9f6-e944-273f-000000000006",
            "task_action": "command",
            "task_args": "",
            "task_path": "",
            "name": "run insights",
            "is_conditional": False,
            "uuid": "52540076-c9f6-e944-273f-000000000006",
        },
    },
    {
        "uuid": "af173ef9-2d7b-4f4e-8857-7b548d23bcad",
        "counter": 17,
        "stdout": "",
        "start_line": 18,
        "end_line": 18,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "runner_on_start",
        "pid": 19546,
        "created": "2024-11-05T20:05:48.702545",
        "parent_uuid": "52540076-c9f6-e944-273f-000000000006",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "run insights",
            "play_uuid": "52540076-c9f6-e944-273f-000000000004",
            "play_pattern": "localhost",
            "task": "run insights",
            "task_uuid": "52540076-c9f6-e944-273f-000000000006",
            "task_action": "command",
            "task_args": "",
            "task_path": "",
            "host": "localhost",
            "uuid": "af173ef9-2d7b-4f4e-8857-7b548d23bcad",
        },
    },
    {
        "uuid": "5a05ea95-a430-40b6-8cef-33e49cf02d03",
        "counter": 18,
        "stdout": "ok: [localhost]",
        "start_line": 18,
        "end_line": 19,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "runner_on_ok",
        "pid": 19546,
        "created": "2024-11-05T20:06:54.586290",
        "parent_uuid": "52540076-c9f6-e944-273f-000000000006",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "play": "run insights",
            "play_uuid": "52540076-c9f6-e944-273f-000000000004",
            "play_pattern": "localhost",
            "task": "run insights",
            "task_uuid": "52540076-c9f6-e944-273f-000000000006",
            "task_action": "command",
            "task_args": "",
            "task_path": "",
            "host": "localhost",
            "remote_addr": "127.0.0.1",
            "res": {
                "changed": False,
                "stdout": "Starting to collect Insights data for tupelo-rhel8-0.rhc.home.arpa\nWriting RHSM facts to /etc/rhsm/facts/insights-client.facts ...\nUploading Insights data.\nSuccessfully uploaded report from tupelo-rhel8-0.rhc.home.arpa to account 6089719.\nView details about this system on console.redhat.com:\nhttps://console.redhat.com/insights/inventory/57419ca7-3f27-47e2-a6f4-455596462ff8",
                "stderr": "",
                "rc": 0,
                "cmd": ["insights-client"],
                "start": "2024-11-05 15:05:48.884331",
                "end": "2024-11-05 15:06:54.566021",
                "delta": "0:01:05.681690",
                "msg": "",
                "invocation": {
                    "module_args": {
                        "_raw_params": "insights-client",
                        "_uses_shell": False,
                        "expand_argument_vars": True,
                        "stdin_add_newline": True,
                        "strip_empty_ends": True,
                        "argv": None,
                        "chdir": None,
                        "executable": None,
                        "creates": None,
                        "removes": None,
                        "stdin": None,
                    }
                },
                "stdout_lines": [
                    "Starting to collect Insights data for tupelo-rhel8-0.rhc.home.arpa",
                    "Writing RHSM facts to /etc/rhsm/facts/insights-client.facts ...",
                    "Uploading Insights data.",
                    "Successfully uploaded report from tupelo-rhel8-0.rhc.home.arpa to account 6089719.",
                    "View details about this system on console.redhat.com:",
                    "https://console.redhat.com/insights/inventory/57419ca7-3f27-47e2-a6f4-455596462ff8",
                ],
                "stderr_lines": [],
                "_ansible_no_log": False,
            },
            "start": "2024-11-05T20:05:48.702504",
            "end": "2024-11-05T20:06:54.586183",
            "duration": 65.883679,
            "event_loop": None,
            "uuid": "5a05ea95-a430-40b6-8cef-33e49cf02d03",
        },
    },
    {
        "uuid": "529b05cd-2eda-4a6d-b219-28ec82bf2e34",
        "counter": 19,
        "stdout": "\r\nPLAY RECAP *********************************************************************\r\nlocalhost                  : ok=3    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   \r\n",
        "start_line": 19,
        "end_line": 23,
        "runner_ident": "1dda658c-636d-4d66-af11-fdb482f356ad",
        "event": "playbook_on_stats",
        "pid": 19546,
        "created": "2024-11-05T20:06:54.594664",
        "parent_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
        "event_data": {
            "playbook": "/tmp/tmp5w9cc5dk/project/main.json",
            "playbook_uuid": "6062b7da-209e-40ab-9f91-a411ca8c451b",
            "changed": {},
            "dark": {},
            "failures": {},
            "ignored": {},
            "ok": {"localhost": 3},
            "processed": {"localhost": 1},
            "rescued": {},
            "skipped": {},
            "artifact_data": {},
            "uuid": "529b05cd-2eda-4a6d-b219-28ec82bf2e34",
        },
    },
]
for event in events:
    try:
        print(event["stdout"])
    except KeyError:
        pass
