Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.5.10 uses incorrect check #141

Open
memelet opened this issue Jun 1, 2018 · 1 comment
Open

4.5.10 uses incorrect check #141

memelet opened this issue Jun 1, 2018 · 1 comment

Comments

@memelet
Copy link
Contributor

memelet commented Jun 1, 2018

The check for appamor status uses:

    when: apparmor_status.failed is defined

But the result object looks like

TASK [cis : debug] ***************************************************************************************************************************************************************************************************************************************
ok: [10.0.17.220] => {
    "apparmor_status": {
        "changed": false,
        "failed": false,
        "name": "apparmor",
        "state": "started"
    }
}

The check should be

    when: apparmor_status.failed is defined and apparmor_status.failed == true
@pchaigno
Copy link
Collaborator

pchaigno commented Jun 2, 2018

Isn't when: apparmor_status.failed enough?

Do you want to submit a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants