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

5.6.2 'rhel8cis_passwd' is undefined #187

Closed
ChandlerSwift opened this issue Apr 27, 2022 · 0 comments
Closed

5.6.2 'rhel8cis_passwd' is undefined #187

ChandlerSwift opened this issue Apr 27, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ChandlerSwift
Copy link
Contributor

Describe the Issue
https://github.com/ansible-lockdown/RHEL8-CIS/blob/devel/tasks/main.yml#L92-L98 restricts gathering information from /etc/passwd behind a list of tags, but this information should be gathered in all cases.

Also,

      - rhel9cis_section5
      - rhel9cis_section6

should probably be rhel8cis, though this won't matter if changing to always. 🙂)

Expected Behavior
Successful run of 5.6.2.

Actual Behavior

$ ansible_playbook [...] --tags level1-server
...
TASK [RHEL8-CIS : 5.6.2 | Ensure system accounts are secured | Set nologin] *********************
fatal: [host]: FAILED! => {"msg": "'rhel8cis_passwd' is undefined"}

Control(s) Affected
5.6.2

Possible Solution
PR forthcoming.

@ChandlerSwift ChandlerSwift added the bug Something isn't working label Apr 27, 2022
@uk-bolly uk-bolly self-assigned this Apr 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants