GET /api/v1/results/2404
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2404,
    "status": "changed",
    "playbook": {
        "id": 14,
        "items": {
            "plays": 13,
            "tasks": 200,
            "results": 142,
            "hosts": 1,
            "files": 102,
            "records": 0
        },
        "labels": [],
        "started": "2020-01-31T15:49:32.942016Z",
        "ended": "2020-01-31T15:53:14.698288Z",
        "duration": "00:03:41.756272",
        "name": null,
        "ansible_version": "2.8.8",
        "status": "completed",
        "path": "/home/zuul/src/opendev.org/openstack/openstack-ansible/playbooks/setup-hosts.yml"
    },
    "play": {
        "id": 40,
        "items": {
            "tasks": 158,
            "results": 108
        },
        "started": "2020-01-31T15:50:42.602030Z",
        "ended": "2020-01-31T15:53:12.802958Z",
        "duration": "00:02:30.200928",
        "name": "Apply security hardening configurations",
        "status": "completed",
        "playbook": 14
    },
    "task": {
        "id": 3021,
        "items": {
            "results": 1
        },
        "path": "/home/zuul/src/opendev.org/openstack/ansible-hardening/tasks/rhel7stig/accounts.yml",
        "started": "2020-01-31T15:51:56.798274Z",
        "ended": "2020-01-31T15:51:57.624034Z",
        "duration": "00:00:00.825760",
        "name": "ansible-hardening : Apply shadow-utils configurations",
        "action": "lineinfile",
        "lineno": 140,
        "handler": false,
        "status": "completed",
        "play": 40,
        "file": 780,
        "playbook": 14
    },
    "host": {
        "id": 15,
        "name": "aio1",
        "changed": 38,
        "failed": 0,
        "ok": 112,
        "skipped": 30,
        "unreachable": 0,
        "playbook": 14
    },
    "content": {
        "changed": true,
        "msg": "All items completed",
        "results": [
            {
                "ansible_loop_var": "item",
                "backup": "",
                "changed": false,
                "diff": [
                    {
                        "after": "",
                        "after_header": "/etc/login.defs (content)",
                        "before": "",
                        "before_header": "/etc/login.defs (content)"
                    },
                    {
                        "after_header": "/etc/login.defs (file attributes)",
                        "before_header": "/etc/login.defs (file attributes)"
                    }
                ],
                "failed": false,
                "invocation": {
                    "module_args": {
                        "attributes": null,
                        "backrefs": false,
                        "backup": false,
                        "content": null,
                        "create": false,
                        "delimiter": null,
                        "dest": "/etc/login.defs",
                        "directory_mode": null,
                        "firstmatch": false,
                        "follow": false,
                        "force": null,
                        "group": null,
                        "insertafter": null,
                        "insertbefore": null,
                        "line": "ENCRYPT_METHOD SHA512",
                        "mode": null,
                        "owner": null,
                        "path": "/etc/login.defs",
                        "regexp": "^ENCRYPT_METHOD",
                        "remote_src": null,
                        "selevel": null,
                        "serole": null,
                        "setype": null,
                        "seuser": null,
                        "src": null,
                        "state": "present",
                        "unsafe_writes": null,
                        "validate": null
                    }
                },
                "item": {
                    "ansible_os_family": "all",
                    "parameter": "ENCRYPT_METHOD",
                    "stig_id": "V-71921",
                    "value": "SHA512"
                },
                "msg": ""
            },
            {
                "ansible_loop_var": "item",
                "changed": false,
                "item": {
                    "ansible_os_family": "all",
                    "parameter": "PASS_MIN_DAYS",
                    "stig_id": "V-71925",
                    "value": ""
                },
                "skip_reason": "Conditional result was False",
                "skipped": true
            },
            {
                "ansible_loop_var": "item",
                "changed": false,
                "item": {
                    "ansible_os_family": "all",
                    "parameter": "PASS_MAX_DAYS",
                    "stig_id": "V-71929",
                    "value": ""
                },
                "skip_reason": "Conditional result was False",
                "skipped": true
            },
            {
                "ansible_loop_var": "item",
                "changed": false,
                "item": {
                    "ansible_os_family": "RedHat",
                    "parameter": "FAIL_DELAY",
                    "stig_id": "V-71951",
                    "value": "4"
                },
                "skip_reason": "Conditional result was False",
                "skipped": true
            },
            {
                "ansible_loop_var": "item",
                "changed": false,
                "item": {
                    "ansible_os_family": "all",
                    "parameter": "UMASK",
                    "stig_id": "V-71995",
                    "value": ""
                },
                "skip_reason": "Conditional result was False",
                "skipped": true
            },
            {
                "ansible_loop_var": "item",
                "backup": "",
                "changed": true,
                "diff": [
                    {
                        "after": "",
                        "after_header": "/etc/login.defs (content)",
                        "before": "",
                        "before_header": "/etc/login.defs (content)"
                    },
                    {
                        "after_header": "/etc/login.defs (file attributes)",
                        "before_header": "/etc/login.defs (file attributes)"
                    }
                ],
                "failed": false,
                "invocation": {
                    "module_args": {
                        "attributes": null,
                        "backrefs": false,
                        "backup": false,
                        "content": null,
                        "create": false,
                        "delimiter": null,
                        "dest": "/etc/login.defs",
                        "directory_mode": null,
                        "firstmatch": false,
                        "follow": false,
                        "force": null,
                        "group": null,
                        "insertafter": null,
                        "insertbefore": null,
                        "line": "CREATE_HOME True",
                        "mode": null,
                        "owner": null,
                        "path": "/etc/login.defs",
                        "regexp": "^CREATE_HOME",
                        "remote_src": null,
                        "selevel": null,
                        "serole": null,
                        "setype": null,
                        "seuser": null,
                        "src": null,
                        "state": "present",
                        "unsafe_writes": null,
                        "validate": null
                    }
                },
                "item": {
                    "ansible_os_family": "all",
                    "parameter": "CREATE_HOME",
                    "stig_id": "V-72013",
                    "value": true
                },
                "msg": "line added"
            }
        ]
    },
    "created": "2020-01-31T15:51:57.502816Z",
    "updated": "2020-01-31T15:51:57.502852Z",
    "started": "2020-01-31T15:51:56.798274Z",
    "ended": "2020-01-31T15:51:57.436471Z",
    "duration": "00:00:00.638197",
    "changed": true,
    "ignore_errors": false
}