dsglaser / cis-security

Playbooks to implement Center for Internet Security (CIS) controls for RHEL (7-9), RHEL Clones, Ubuntu (18.04-22.04), and Microsoft Windows (10, Server 2019)
Other
90 stars 63 forks source link

Issue with 1.6.1.6 #61

Closed osullivanm-csi closed 1 year ago

osullivanm-csi commented 1 year ago

Host is running Red Hat Enterprise Linux 8.7

"The conditional check 'unconfined_services_out.stdout' failed. The error was: error while evaluating conditional (unconfined_services_out.stdout): 'dict object' has no attribute 'stdout'. 'dict object' has no attribute 'stdout'\n\n

The error appears to be in '/runner/requirements_collections/ansible_collections/dsglaser/cis_security/roles/cis_security/tasks/type-files/redhat-8-type.yml': line 861, column 7, but may\n be elsewhere in the file depending on the exact syntax problem.\n\n

The offending line appears to be:\n\n

# Print any findings to the user\n
- name: 1.6.1.6 - Report on unconfined running services to user\n
  ^ here\n
dsglaser commented 1 year ago

Can you let me know what the value of the fact ansible_selinux is at the time of hitting this control is?

Thanks

osullivanm-csi commented 1 year ago

Hi,

This is what it is set to before hitting the control:

"ansible_selinux": { "status": "disabled" },